[PATCH] coverity: sunrpc/xprt task null check
authorKAMBAROV, ZAUR <kambarov@berkeley.edu>
Fri, 8 Jul 2005 00:57:07 +0000 (17:57 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 8 Jul 2005 01:23:47 +0000 (18:23 -0700)
commit7e8d7e3c9e38dab8d28a8667faa4941842f64213
treef2584d8f7ebd4afd8c40f14dbb1558762bade2a5
parent7eaae2828dadae3abde7f77734c874d4b74b313a
[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 <zkambarov@coverity.com>
Acked-by: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
net/sunrpc/xprt.c