Skip to content

Commit

Permalink
lockd: Remove trivial BUG_ON()s from the NSM code
Browse files Browse the repository at this point in the history
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Nov 4, 2012
1 parent aad56de commit 326ce0a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/lockd/mon.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ static int nsm_mon_unmon(struct nsm_handle *nsm, u32 proc, struct nsm_res *res,
.rpc_resp = res,
};

BUG_ON(clnt == NULL);

memset(res, 0, sizeof(*res));

msg.rpc_proc = &clnt->cl_procinfo[proc];
Expand Down Expand Up @@ -466,7 +464,6 @@ static void encode_nsm_string(struct xdr_stream *xdr, const char *string)
const u32 len = strlen(string);
__be32 *p;

BUG_ON(len > SM_MAXSTRLEN);
p = xdr_reserve_space(xdr, 4 + len);
xdr_encode_opaque(p, string, len);
}
Expand Down

0 comments on commit 326ce0a

Please sign in to comment.