]> git.baikalelectronics.ru Git - kernel.git/commit
drm: bridge: dw_hdmi: Audio: fix returnvar.cocci warnings
authorkernel test robot <lkp@intel.com>
Thu, 21 Apr 2022 15:09:46 +0000 (23:09 +0800)
committerNeil Armstrong <narmstrong@baylibre.com>
Fri, 22 Apr 2022 08:38:35 +0000 (10:38 +0200)
commitbd9525de4f9f7c09ff614eb76606d6c4657a0e3d
treeeb3a6fb9a9c923ba2c8a170b156c7e1dfd5de07e
parent9bcd2789385e867d2f3be58129fa9f2301a8a338
drm: bridge: dw_hdmi: Audio: fix returnvar.cocci warnings

drivers/gpu/drm/bridge/synopsys/dw-hdmi-gp-audio.c:80:5-8: Unneeded variable: "ret". Return "0" on line 94
drivers/gpu/drm/bridge/synopsys/dw-hdmi-gp-audio.c:105:5-8: Unneeded variable: "ret". Return "0" on line 112

 Remove unneeded variable used to store return value.

Generated by: scripts/coccinelle/misc/returnvar.cocci

CC: Sandor Yu <Sandor.yu@nxp.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Reviewed-by: Sandor Yu <Sandor.yu@nxp.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/YmFzutFV/iDyEQF2@dd18de969aa6
drivers/gpu/drm/bridge/synopsys/dw-hdmi-gp-audio.c