From: Chuck Lever Date: Thu, 4 Dec 2008 19:21:08 +0000 (-0500) Subject: NSM: Remove BUG_ON() in nsm_monitor() X-Git-Tag: v2.6.29-rc1~177^2~49 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5bc74bef7c9b652f0f2aa9c5a8d5ac86881aba79;p=karo-tx-linux.git NSM: Remove BUG_ON() in nsm_monitor() 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 Signed-off-by: J. Bruce Fields --- diff --git a/fs/lockd/mon.c b/fs/lockd/mon.c index 697bdcdd20cc..bb5fc1bb37f7 100644 --- a/fs/lockd/mon.c +++ b/fs/lockd/mon.c @@ -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;