]> git.baikalelectronics.ru Git - kernel.git/commit
[media] rtl28xxu: fix return value check in rtl2832u_tuner_attach()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 16 Apr 2015 12:22:46 +0000 (09:22 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 12 May 2015 16:27:22 +0000 (13:27 -0300)
commitc9945c7143d8c667f58770f63db8fce5a0a61bea
tree262e68928dbc2c491d3eb047632e7f219a8ceee8
parentc67d04281097e90d598bbcd6f1b760070e0711e0
[media] rtl28xxu: fix return value check in rtl2832u_tuner_attach()

In case of error, the function platform_device_register_data() returns
ERR_PTR() and never returns NULL. The NULL test in the return value check
should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/dvb-usb-v2/rtl28xxu.c