From: Wei Yongjun Date: Thu, 16 Apr 2015 12:22:46 +0000 (-0300) Subject: [media] rtl28xxu: fix return value check in rtl2832u_tuner_attach() X-Git-Tag: omap-for-v4.3/legacy-v2-signed~140^2~373 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=250d2ff01623e80943c4ffed0308b0d19fe6625d;p=pandora-kernel.git [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 Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed