]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: PTP - avoid aggregate return warnings
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Wed, 13 Apr 2016 10:08:28 +0000 (03:08 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 2 May 2016 00:05:06 +0000 (17:05 -0700)
commit14ed5245c2fb02d921ca3514f3c66dc4e4166043
tree2bf6f56dfaa1a3cd9bdf00f983dc35e94080f760
parent4681b112c9e01d3e09af9cea1f346bc3e3c744fd
i40e: PTP - avoid aggregate return warnings

Aggregate return warnings are when struct types are returned
and must be copied to the lvalue with a struct copy by the compiler.

This fixes warnings of type aggregate-return from gcc with W=2.

Change-Id: I896b1bf514544bf0faeb458869d79914b9f1b168
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ptp.c