projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f02329
)
misc: eeprom: at24: clean up at24_bin_write()
author
Vladimir Zapolskiy
<vz@mleia.com>
Sun, 26 Jul 2015 21:18:51 +0000
(
00:18
+0300)
committer
Wolfram Sang
<wsa@the-dreams.de>
Fri, 31 Jul 2015 11:32:31 +0000
(13:32 +0200)
The change removes redundant sysfs binary file boundary check, since
this task is already done on caller side in fs/sysfs/file.c
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/misc/eeprom/at24.c
patch
|
blob
|
history
diff --git
a/drivers/misc/eeprom/at24.c
b/drivers/misc/eeprom/at24.c
index
2d3db81
..
6ded3dc
100644
(file)
--- a/
drivers/misc/eeprom/at24.c
+++ b/
drivers/misc/eeprom/at24.c
@@
-438,9
+438,6
@@
static ssize_t at24_bin_write(struct file *filp, struct kobject *kobj,
{
struct at24_data *at24;
- if (unlikely(off >= attr->size))
- return -EFBIG;
-
at24 = dev_get_drvdata(container_of(kobj, struct device, kobj));
return at24_write(at24, buf, off, count);
}