Skip to contentSkip to conversation

s390/vmur: fix build warning

PATCH In review Sudip Mukherjee 2 participants 3 messages Dec 22, 2015 s390

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390/vmur: fix build warning

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 <[email protected]>
---
 drivers/s390/char/vmur.c | 2 --
 1 file changed, 2 deletions(-)
drivers/s390/char/vmur.c +0 -2
index a532e54..6c30e93a 100644
@@ -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)
Signature · 1 line
1.9.1
#1 lore raw
Quoted 2 lines · Sudip Mukherjee

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.

Mind if I simply fold that into the commit in question?

#2 lore raw
Quoted 5 lines · Al Viro
Quoted 2 lines · Sudip Mukherjee

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.

Mind if I simply fold that into the commit in question?

No problem at all. Please fold them together.

regards
sudip