Bartlomiej Zolnierkiewicz e576e05a73 nfs: remove superfluous BUG_ON()s
Subject: [PATCH] nfs: remove superfluous BUG_ON()s

Remove duplicated BUG_ON()s from nfs[4]_create_server()
(we make the same checks earlier in both functions).

This takes care of the following entries from Dan's list:

fs/nfs/client.c +1078 nfs_create_server(47) warning: variable derefenced before check 'server->nfs_client'
fs/nfs/client.c +1079 nfs_create_server(48) warning: variable derefenced before check 'server->nfs_client->rpc_ops'
fs/nfs/client.c +1363 nfs4_create_server(43) warning: variable derefenced before check 'server->nfs_client'
fs/nfs/client.c +1364 nfs4_create_server(44) warning: variable derefenced before check 'server->nfs_

Reported-by: Dan Carpenter <error27@gmail.com>
Cc: corbet@lwn.net
Cc: eteo@redhat.com
Cc: Julia Lawall <julia@diku.dk>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2009-08-10 08:54:16 -04:00
..
2009-08-10 08:54:16 -04:00
2009-07-12 12:22:34 -07:00
2009-08-10 08:54:16 -04:00
2009-04-03 16:42:47 +01:00
2009-07-08 09:31:56 -07:00
2008-02-20 16:15:44 -05:00
2009-06-16 19:47:48 -07:00
2009-07-21 16:48:07 -04:00
2009-03-19 15:35:50 -04:00
2009-07-12 12:22:34 -07:00
2009-08-10 08:54:13 -04:00