From: Wei Yongjun Date: Thu, 20 Sep 2012 21:13:55 +0000 (+0000) Subject: net/irda: sh_sir: fix return value check in sh_sir_set_baudrate() X-Git-Tag: v3.6-rc7~10^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc9c9759ebc65d886453c335b2b5be39f87ab01e;p=pandora-kernel.git net/irda: sh_sir: fix return value check in sh_sir_set_baudrate() In case of error, the function clk_get() returns ERR_PTR() and never returns NULL pointer. The NULL test in the error handling should be replaced with IS_ERR(). dpatch engine is used to auto generated this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun Signed-off-by: David S. Miller --- Reading git-diff-tree failed