mirror of https://gitee.com/openkylin/linux.git
eeprom: ee1004: Remove not needed check in ee1004_read
sysfs_kf_bin_read() checks this for us already. In addition the function works correctly also w/o this check. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Link: https://lore.kernel.org/r/33889bff-3614-4b73-5010-701635e1edab@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7adbd54fb2
commit
7abdadfcf1
|
@ -97,9 +97,6 @@ static ssize_t eeprom_read(struct file *filp, struct kobject *kobj,
|
|||
size_t requested = count;
|
||||
int page;
|
||||
|
||||
if (unlikely(!count))
|
||||
return count;
|
||||
|
||||
page = off >> EE1004_PAGE_SHIFT;
|
||||
if (unlikely(page > 1))
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue