i2c: slave eeprom: clean up sysfs bin attribute read()/write()
authorVladimir Zapolskiy <vz@mleia.com>
Sun, 26 Jul 2015 21:16:31 +0000 (00:16 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 31 Jul 2015 11:32:30 +0000 (13:32 +0200)
commit1f023297f7f77d434ecc221018d2e181eac0ae36
treec154366d65f08e7df2d3f67e3ee0a89c263fcf66
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590
i2c: slave eeprom: clean up sysfs bin attribute read()/write()

The change removes redundant sysfs binary file boundary checks,
since this task is already done on caller side in fs/sysfs/file.c

Note, on file size overflow read() now returns 0, and this is a
correct and expected EOF notification according to POSIX.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-slave-eeprom.c