From: Dan Carpenter Date: Wed, 1 Feb 2012 07:46:20 +0000 (+0300) Subject: SUNRPC: remove an unneeded NULL check in xprt_connect() X-Git-Tag: v3.4-rc1~123^2~134 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87e3c0553fcbea79bf9f17fc5694484ecf3ae5e8;p=pandora-kernel.git SUNRPC: remove an unneeded NULL check in xprt_connect() We check "task->tk_rqstp" and then we dereference it without checking on the next line. The only caller is call_connect() and that has a check which prevents it from calling xprt_connect() with a NULL. if (task->tk_status < 0) return; If "task->tk_rqstp" were NULL then "tk_status" would be -EAGAIN. Signed-off-by: Dan Carpenter Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed