diff mbox series

drivers: media: Simplify the return expression

Message ID 20210524123108.470-1-zuoqilin1@163.com
State New
Headers show
Series drivers: media: Simplify the return expression | expand

Commit Message

zuoqilin1@163.com May 24, 2021, 12:31 p.m. UTC
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 mbox series

Patch

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);
 }
 
 /* -------------------------------------------------------------------------- */