From: Vincent Stehlé Date: Mon, 21 Jul 2014 21:47:36 +0000 (+0200) Subject: cifs: remove unused function cifs_oplock_break_wait X-Git-Tag: v3.17-rc2~22^2~11 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=e91259f3c72648976511b1600f983d202dda1af1;p=~emulex%2Finfiniband.git cifs: remove unused function cifs_oplock_break_wait Commit 743162013d40 ("sched: Remove proliferation of wait_on_bit() action functions") has removed the call to cifs_oplock_break_wait, making this function unused; remove it. This fixes the following compilation warning: fs/cifs/misc.c:578:1: warning: ‘cifs_oplock_break_wait’ defined but not used [-Wunused-function] Signed-off-by: Vincent Stehlé Cc: Steve French Signed-off-by: Steve French --- diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c index 81340c6253e..b7415d596db 100644 --- a/fs/cifs/misc.c +++ b/fs/cifs/misc.c @@ -574,13 +574,6 @@ void cifs_set_oplock_level(struct cifsInodeInfo *cinode, __u32 oplock) cinode->oplock = 0; } -static int -cifs_oplock_break_wait(void *unused) -{ - schedule(); - return signal_pending(current) ? -ERESTARTSYS : 0; -} - /* * We wait for oplock breaks to be processed before we attempt to perform * writes.