Messages in this thread Patch in this message | | | From | zuoqilin1@163 ... | Subject | [PATCH] drivers: media: Simplify the return expression | Date | Mon, 24 May 2021 20:31:08 +0800 |
| |
From: zuoqilin <zuoqilin@yulong.com>
Simplify the return expression of drxj_dap_scu_atomic_write_reg16().
Signed-off-by: zuoqilin <zuoqilin@yulong.com> --- drivers/media/dvb-frontends/drx39xyj/drxj.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/media/dvb-frontends/drx39xyj/drxj.c b/drivers/media/dvb-frontends/drx39xyj/drxj.c index bf9e4ef..108d1f4 100644 --- a/drivers/media/dvb-frontends/drx39xyj/drxj.c +++ b/drivers/media/dvb-frontends/drx39xyj/drxj.c @@ -4234,14 +4234,11 @@ int drxj_dap_scu_atomic_write_reg16(struct i2c_device_addr *dev_addr, u16 data, u32 flags) { u8 buf[2]; - int rc; buf[0] = (u8) (data & 0xff); buf[1] = (u8) ((data >> 8) & 0xff); - rc = drxj_dap_scu_atomic_read_write_block(dev_addr, addr, 2, buf, false); - - return rc; + return drxj_dap_scu_atomic_read_write_block(dev_addr, addr, 2, buf, false); } /* -------------------------------------------------------------------------- */ -- 1.9.1
| |