net: pch_gbe: remove unneeded variable retval in __pch_gbe_suspend
authorKaixu Xia <kaixuxia@tencent.com>
Sun, 8 Nov 2020 12:13:00 +0000 (20:13 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Nov 2020 23:26:31 +0000 (15:26 -0800)
commit1aa844b92176cbcafe6b614707f5ef78487966ab
treea7e3ac868950ff0810bc65fb7c982e4d360425ac
parent3ec94da976fe10b6e4f74c8d35deef0a6c0dd743
net: pch_gbe: remove unneeded variable retval in __pch_gbe_suspend

Fix the following coccicheck warning:

./drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c:2415:5-11: Unneeded variable: "retval". Return "0" on line 2435

Reported-by: Tosk Robot <tencent_os_robot@tencent.com>
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Link: https://lore.kernel.org/r/1604837580-12419-1-git-send-email-kaixuxia@tencent.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c