]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: wfx: Remove redundant NULL check before release_firmware() call
authorMinghao Chi <chi.minghao@zte.com.cn>
Mon, 6 Jun 2022 01:42:37 +0000 (01:42 +0000)
committerKalle Valo <kvalo@kernel.org>
Fri, 10 Jun 2022 07:38:55 +0000 (10:38 +0300)
commitbb1aaab75b2daf8bcba2f4c597b39c3bab812466
tree67649d8ae222e000b0211d65819bf0f4b5eb5d45
parent7e1d45f9b52a1ad22a215ccce3bf1e63e0886dbe
wifi: wfx: Remove redundant NULL check before release_firmware() call

release_firmware() checks for NULL pointers internally so checking
before calling it is redundant.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Acked-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220606014237.290466-1-chi.minghao@zte.com.cn
drivers/net/wireless/silabs/wfx/fwio.c