Commit b5fe8630 authored by Qinglang Miao's avatar Qinglang Miao Committed by Mauro Carvalho Chehab
Browse files

media: ngene: simplify the return expression of eeprom_write_ushort()



Simplify the return expression.

Signed-off-by: default avatarQinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 3101010f
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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)