]> Git Repo - linux.git/commitdiff
NLM: Remove redundant printk() in nlmclnt_lock()
authorChuck Lever <[email protected]>
Thu, 4 Dec 2008 19:21:01 +0000 (14:21 -0500)
committerJ. Bruce Fields <[email protected]>
Tue, 6 Jan 2009 16:53:51 +0000 (11:53 -0500)
The nsm_monitor() function already generates a printk(KERN_NOTICE) if
the SM_MON upcall fails, so the similar printk() in the nlmclnt_lock()
function is redundant.

Signed-off-by: Chuck Lever <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
fs/lockd/clntproc.c

index 31668b690e03d4e482a8affb7657a310cffac1c0..5ce42e0ed4a0b6814c9e5542fd3b2de6171d63b8 100644 (file)
@@ -518,11 +518,9 @@ nlmclnt_lock(struct nlm_rqst *req, struct file_lock *fl)
        unsigned char fl_type;
        int status = -ENOLCK;
 
-       if (nsm_monitor(host) < 0) {
-               printk(KERN_NOTICE "lockd: failed to monitor %s\n",
-                                       host->h_name);
+       if (nsm_monitor(host) < 0)
                goto out;
-       }
+
        fl->fl_flags |= FL_ACCESS;
        status = do_vfs_lock(fl);
        fl->fl_flags = fl_flags;
This page took 0.041792 seconds and 4 git commands to generate.