Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Qinglang Miao and committed by
Mauro Carvalho Chehab
b5fe8630 3101010f

+1 -5
+1 -5
drivers/media/pci/ngene/ngene-cards.c
··· 934 934 935 935 static int eeprom_write_ushort(struct i2c_adapter *adapter, u16 tag, u16 data) 936 936 { 937 - int stat; 938 937 u8 buf[2]; 939 938 940 939 buf[0] = data >> 8; 941 940 buf[1] = data & 0xff; 942 - stat = WriteEEProm(adapter, tag, 2, buf); 943 - if (stat) 944 - return stat; 945 - return 0; 941 + return WriteEEProm(adapter, tag, 2, buf); 946 942 } 947 943 948 944 static s16 osc_deviation(void *priv, s16 deviation, int flag)