]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerJakub Kicinski <kuba@kernel.org>
Tue, 5 Mar 2024 04:49:59 +0000 (20:49 -0800)
commit662200e324daebe6859c1f0f3ea1538b0561425a
tree640d77028bc10f6cdc3207ee2bbafd28444748a6
parent30654f0eec65c428863f2312cfe0b7f26ae0fab4
e1000e: Minor flow correction in e1000_shutdown function

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>
drivers/net/ethernet/intel/e1000e/netdev.c