From: KAMBAROV, ZAUR Date: Fri, 8 Jul 2005 00:57:07 +0000 (-0700) Subject: [PATCH] coverity: sunrpc/xprt task null check X-Git-Tag: v2.6.13-rc3~240 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e8d7e3c9e38dab8d28a8667faa4941842f64213;p=pandora-kernel.git [PATCH] coverity: sunrpc/xprt task null check In __xprt_lock_write() we check to see if `task' is NULL, but in other places we just go and dereference it. `task' shouldn't be NULL anyway, so remove this test. This defect was found automatically by Coverity Prevent, a static analysis tool. Signed-off-by: Zaur Kambarov Acked-by: Trond Myklebust Cc: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed