[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210524123108.470-1-zuoqilin1@163.com>
Date: Mon, 24 May 2021 20:31:08 +0800
From: zuoqilin1@....com
To: mchehab@...nel.org, colin.king@...onical.com,
gustavoars@...nel.org, trix@...hat.com
Cc: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
zuoqilin <zuoqilin@...ong.com>
Subject: [PATCH] drivers: media: Simplify the return expression
From: zuoqilin <zuoqilin@...ong.com>
Simplify the return expression of drxj_dap_scu_atomic_write_reg16().
Signed-off-by: zuoqilin <zuoqilin@...ong.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
Powered by blists - more mailing lists