diff options
author | Qinglang Miao <miaoqinglang@huawei.com> | 2020-09-21 15:10:37 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-03-11 11:59:45 +0100 |
commit | b5fe86307e42e3a62c58c6b6a54c8db55b2632ae (patch) | |
tree | 05b4bf081181da447f815d32d8b7ccf8db2f897d /drivers/media/pci/ngene | |
parent | media: anysee: simplify the return expression of anysee_ci_* function (diff) | |
download | linux-b5fe86307e42e3a62c58c6b6a54c8db55b2632ae.tar.xz linux-b5fe86307e42e3a62c58c6b6a54c8db55b2632ae.zip |
media: ngene: simplify the return expression of eeprom_write_ushort()
Simplify the return expression.
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/pci/ngene')
-rw-r--r-- | drivers/media/pci/ngene/ngene-cards.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/media/pci/ngene/ngene-cards.c b/drivers/media/pci/ngene/ngene-cards.c index 8bfb3d8ea610..7dbc21e1a2ca 100644 --- a/drivers/media/pci/ngene/ngene-cards.c +++ b/drivers/media/pci/ngene/ngene-cards.c @@ -934,15 +934,11 @@ static int eeprom_read_ushort(struct i2c_adapter *adapter, u16 tag, u16 *data) static int eeprom_write_ushort(struct i2c_adapter *adapter, u16 tag, u16 data) { - int stat; u8 buf[2]; buf[0] = data >> 8; buf[1] = data & 0xff; - stat = WriteEEProm(adapter, tag, 2, buf); - if (stat) - return stat; - return 0; + return WriteEEProm(adapter, tag, 2, buf); } static s16 osc_deviation(void *priv, s16 deviation, int flag) |