diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2021-05-24 22:10:47 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-27 14:49:39 +0200 |
commit | 64bf274711c0ba973bb1907fd5119c0d06255e37 (patch) | |
tree | 624da1198405a50c3523fc8555b85ba34e4a92e1 /include/linux/fpga/fpga-mgr.h | |
parent | 7abdadfcf19a385b6f8ffea75457074240a9536f (diff) | |
download | linux-64bf274711c0ba973bb1907fd5119c0d06255e37.tar.gz linux-64bf274711c0ba973bb1907fd5119c0d06255e37.tar.bz2 linux-64bf274711c0ba973bb1907fd5119c0d06255e37.zip |
eeprom: ee1004: Remove not needed check in ee1004_eeprom_read
i2c_smbus_read_i2c_block_data_or_emulated() checks its length argument,
so we don't have to do it. In addition remove the unlikely hint from
the checks, we do i2c reads and therefore are in a slow path.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/eb2a8bff-43ec-c763-a417-9d741e6f0034@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions