projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7adbd54
)
eeprom: ee1004: Remove not needed check in ee1004_read
author
Heiner Kallweit
<hkallweit1@gmail.com>
Mon, 24 May 2021 20:09:49 +0000
(22:09 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 27 May 2021 12:49:39 +0000
(14:49 +0200)
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>
drivers/misc/eeprom/ee1004.c
patch
|
blob
|
history
diff --git
a/drivers/misc/eeprom/ee1004.c
b/drivers/misc/eeprom/ee1004.c
index 0613a530099c42a5a59608bd5aaa97dd13d2d4e0..6aff333ff049419547d06d13dec147ab0243e22e 100644
(file)
--- a/
drivers/misc/eeprom/ee1004.c
+++ b/
drivers/misc/eeprom/ee1004.c
@@
-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;