diff options
author | Vladimir Zapolskiy <vz@mleia.com> | 2015-07-27 00:18:51 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2015-07-31 13:32:31 +0200 |
commit | d12c0aaf3780c5b26b4ea9e795252381f586c063 (patch) | |
tree | 095687e2618711602ab7df56c53f9acd1d7495c5 /drivers/misc/eeprom | |
parent | 1f023297f7f77d434ecc221018d2e181eac0ae36 (diff) | |
download | linux-d12c0aaf3780c5b26b4ea9e795252381f586c063.tar.gz linux-d12c0aaf3780c5b26b4ea9e795252381f586c063.tar.bz2 linux-d12c0aaf3780c5b26b4ea9e795252381f586c063.zip |
misc: eeprom: at24: clean up at24_bin_write()
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>
Diffstat (limited to 'drivers/misc/eeprom')
-rw-r--r-- | drivers/misc/eeprom/at24.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index 2d3db81be099..6ded3dc36644 100644 --- 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); } |