]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
power: olpc_battery: clean up eeprom read function
authorVladimir Zapolskiy <vz@mleia.com>
Sun, 26 Jul 2015 21:26:49 +0000 (00:26 +0300)
committerSebastian Reichel <sre@kernel.org>
Mon, 27 Jul 2015 14:28:54 +0000 (16:28 +0200)
commit3e1d9c6f241961e2e21b8df9de5ee12e3dc6f177
treea4d372e6327efbca685cbb2e7f5baa8556d8485c
parent9f28b86552aef94733387814a57755cb0019cfb9
power: olpc_battery: clean up eeprom read function

The change removes redundant sysfs binary file boundary check while
reading eeprom content from userspace, the check is done on caller
side in fs/sysfs/file.c, if binary attribute size is not zero.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/olpc_battery.c