Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: si2165: Remove redundant NULL check before release_firmware() call

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

Link: https://lore.kernel.org/linux-media/20220606014433.290667-1-chi.minghao@zte.com.cn
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Acked-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Minghao Chi and committed by
Mauro Carvalho Chehab
cefc10d0 f62dc8f6

+2 -4
+2 -4
drivers/media/dvb-frontends/si2165.c
··· 513 513 ret = 0; 514 514 state->firmware_loaded = true; 515 515 error: 516 - if (fw) { 517 - release_firmware(fw); 518 - fw = NULL; 519 - } 516 + release_firmware(fw); 517 + fw = NULL; 520 518 521 519 return ret; 522 520 }