projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6500427
)
fnic: switch to fixed_size_llseek()
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 17 Jun 2013 13:44:23 +0000
(17:44 +0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 29 Jun 2013 08:57:31 +0000
(12:57 +0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/scsi/fnic/fnic_debugfs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/fnic/fnic_debugfs.c
b/drivers/scsi/fnic/fnic_debugfs.c
index 85e1ffd0e5c5af17e53305ad016f28898d65c8f7..cbcb0121c84de5557852e641bcff6248881480e2 100644
(file)
--- a/
drivers/scsi/fnic/fnic_debugfs.c
+++ b/
drivers/scsi/fnic/fnic_debugfs.c
@@
-164,20
+164,8
@@
static loff_t fnic_trace_debugfs_lseek(struct file *file,
int howto)
{
fnic_dbgfs_t *fnic_dbg_prt = file->private_data;
- loff_t pos = -1;
-
- switch (howto) {
- case 0:
- pos = offset;
- break;
- case 1:
- pos = file->f_pos + offset;
- break;
- case 2:
- pos = fnic_dbg_prt->buffer_len + offset;
- }
- return (pos < 0 || pos > fnic_dbg_prt->buffer_len) ?
- -EINVAL : (file->f_pos = pos);
+ return fixed_size_llseek(file, offset, howto,
+ fnic_dbg_prt->buffer_len);
}
/*