]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
e1000e: Minor flow correction in e1000_shutdown function
authorVitaly Lifshits <vitaly.lifshits@intel.com>
Fri, 1 Mar 2024 18:48:05 +0000 (10:48 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:38:08 +0000 (16:38 +0200)
commit6e4a1a542dc89bb48fbd90bdbdc9202ac38fc707
tree5fbaf1a945c716f3e9c1d8e4b218a52599e4a771
parentc5ee0a536beeb1d1ece303fdd5508280c986d6d7
e1000e: Minor flow correction in e1000_shutdown function

[ Upstream commit 662200e324daebe6859c1f0f3ea1538b0561425a ]

Add curly braces to avoid entering to an if statement where it is not
always required in e1000_shutdown function.
This improves code readability and might prevent non-deterministic
behaviour in the future.

Signed-off-by: Vitaly Lifshits <vitaly.lifshits@intel.com>
Tested-by: Naama Meir <naamax.meir@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://lore.kernel.org/r/20240301184806.2634508-5-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 861e8086029e ("e1000e: move force SMBUS from enable ulp function to avoid PHY loss issue")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/e1000e/netdev.c