summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2015-07-27 00:18:51 +0300
committerWolfram Sang <wsa@the-dreams.de>2015-07-31 13:32:31 +0200
commitd12c0aaf3780c5b26b4ea9e795252381f586c063 (patch)
tree095687e2618711602ab7df56c53f9acd1d7495c5 /drivers/misc
parent1f023297f7f77d434ecc221018d2e181eac0ae36 (diff)
downloadop-kernel-dev-d12c0aaf3780c5b26b4ea9e795252381f586c063.zip
op-kernel-dev-d12c0aaf3780c5b26b4ea9e795252381f586c063.tar.gz
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')
-rw-r--r--drivers/misc/eeprom/at24.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c
index 2d3db81..6ded3dc 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);
}
OpenPOWER on IntegriCloud