linux/drivers/net/ethernet/intel
Jacob Keller 71974d7e85 fm10k: reduce the scope of the local msg variable
The msg variable in the fm10k_mbx_validate_msg_size and
fm10k_sm_mbx_transmit functions is only used within the do {} loop
scope. Reduce its scope only to where it is used.

This was detected by cppcheck, and resolves the following warnings
produced by that tool:

[fm10k_mbx.c:299]: (style) The scope of the variable 'msg' can be reduced.
[fm10k_mbx.c:2004]: (style) The scope of the variable 'msg' can be reduced.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2019-08-01 14:57:38 -07:00
..
e1000 net: Use skb accessors in network drivers 2019-07-22 20:47:56 -07:00
e1000e e1000e: add workaround for possible stalled packet 2019-07-24 13:55:09 -07:00
fm10k fm10k: reduce the scope of the local msg variable 2019-08-01 14:57:38 -07:00
i40e net: Use skb_frag_off accessors 2019-07-30 14:21:32 -07:00
iavf net: Use skb_frag_off accessors 2019-07-30 14:21:32 -07:00
ice ice: Bump version number 2019-07-31 13:41:09 -07:00
igb igb: Use dev_get_drvdata where possible 2019-07-23 13:02:42 -07:00
igbvf net: Use skb accessors in network drivers 2019-07-22 20:47:56 -07:00
igc igc: Add more SKUs for i225 device 2019-07-24 13:55:09 -07:00
ixgb net: Use skb accessors in network drivers 2019-07-22 20:47:56 -07:00
ixgbe net: Use skb_frag_off accessors 2019-07-30 14:21:32 -07:00
ixgbevf net/ixgbevf: fix a compilation error of skb_frag_t 2019-07-24 15:28:43 -07:00
e100.c intel: correct return from set features callback 2019-03-19 14:18:49 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support 2018-10-17 12:14:54 -07:00