Skip to content

Commit

Permalink
NSM: Remove BUG_ON() in nsm_monitor()
Browse files Browse the repository at this point in the history
Clean up: Remove the BUG_ON() invocation in nsm_monitor().  It's not
likely that nsm_monitor() is ever called with a NULL host pointer, and
the code will die anyway if host is NULL.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
  • Loading branch information
Chuck Lever authored and J. Bruce Fields committed Jan 6, 2009
1 parent 501c1ed commit 5bc74be
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/lockd/mon.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ nsm_monitor(struct nlm_host *host)
int status;

dprintk("lockd: nsm_monitor(%s)\n", nsm->sm_name);
BUG_ON(nsm == NULL);

if (nsm->sm_monitored)
return 0;
Expand Down

0 comments on commit 5bc74be

Please sign in to comment.