[PATCH] drivers: media: Simplify the return expression

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: zuoqilin <zuoqilin@xxxxxxxxxx>

Simplify the return expression of drxj_dap_scu_atomic_write_reg16().

Signed-off-by: zuoqilin <zuoqilin@xxxxxxxxxx>
---
 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





[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux