diff options
| author | Vladimir Zapolskiy <vz@mleia.com> | 2015-07-26 17:18:51 -0400 |
|---|---|---|
| committer | Wolfram Sang <wsa@the-dreams.de> | 2015-07-31 07:32:31 -0400 |
| commit | d12c0aaf3780c5b26b4ea9e795252381f586c063 (patch) | |
| tree | 095687e2618711602ab7df56c53f9acd1d7495c5 /drivers/misc/eeprom | |
| parent | 1f023297f7f77d434ecc221018d2e181eac0ae36 (diff) | |
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, | |||
| 438 | { | 438 | { |
| 439 | struct at24_data *at24; | 439 | struct at24_data *at24; |
| 440 | 440 | ||
| 441 | if (unlikely(off >= attr->size)) | ||
| 442 | return -EFBIG; | ||
| 443 | |||
| 444 | at24 = dev_get_drvdata(container_of(kobj, struct device, kobj)); | 441 | at24 = dev_get_drvdata(container_of(kobj, struct device, kobj)); |
| 445 | return at24_write(at24, buf, off, count); | 442 | return at24_write(at24, buf, off, count); |
| 446 | } | 443 | } |
