]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ralink-gdma: Check return code of device_reset
authorGiovanni Gherdovich <bobdc9664@seznam.cz>
Sat, 6 Mar 2021 14:13:22 +0000 (15:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:25:33 +0000 (09:25 +0100)
commitcb447581be430c51b45b4c4f8696275ea1bbfc1d
treecf01a0194e7f0b8186f16809fc95c099d0dac077
parent3a5ff34bde6082f9b05c4237aff30e6a91b18832
staging: ralink-gdma: Check return code of device_reset

The device_reset() function is marked as "__must_check", thus the static
analysis tool "sparse" complains that in ralink-gdma its return value is
ignored. Log a warning in case it returns an error.

Signed-off-by: Giovanni Gherdovich <bobdc9664@seznam.cz>
Link: https://lore.kernel.org/r/20210306141322.7516-1-bobdc9664@seznam.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ralink-gdma/ralink-gdma.c