Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1296572 > unrolled thread

[PATCH] s390/vmur: fix build warning

Started bySudip Mukherjee <sudipm.mukherjee@gmail.com>
First post2015-12-22 08:00 +0100
Last post2015-12-22 08:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] s390/vmur: fix build warning Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2015-12-22 08:00 +0100

#1296572 — [PATCH] s390/vmur: fix build warning

FromSudip Mukherjee <sudipm.mukherjee@gmail.com>
Date2015-12-22 08:00 +0100
Subject[PATCH] s390/vmur: fix build warning
Message-ID<qIp5o-ty-11@gated-at.bofh.it>
The helper no_seek_end_llseek() was added but now newpos is not required
and as a result we are getting build warning of unused variable.

Fixes: fb1d259e480c ("new helpers: no_seek_end_llseek{,_size}()")
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
---
 drivers/s390/char/vmur.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/s390/char/vmur.c b/drivers/s390/char/vmur.c
index a532e54..6c30e93a 100644
--- a/drivers/s390/char/vmur.c
+++ b/drivers/s390/char/vmur.c
@@ -782,8 +782,6 @@ static int ur_release(struct inode *inode, struct file *file)
 
 static loff_t ur_llseek(struct file *file, loff_t offset, int whence)
 {
-	loff_t newpos;
-
 	if ((file->f_flags & O_ACCMODE) != O_RDONLY)
 		return -ESPIPE; /* seek allowed only for reader */
 	if (offset % PAGE_SIZE)
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web