media: dvb_frontend: remove redundant status self assignment
authorColin Ian King <colin.king@canonical.com>
Thu, 23 Nov 2017 10:19:19 +0000 (05:19 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 13 Dec 2017 13:18:39 +0000 (08:18 -0500)
The assignment status to itself is redundant and can be removed.
Detected with Coccinelle.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/drxd_hard.c
drivers/media/dvb-frontends/tda18271c2dd.c

index 3215d003b2a1d88a473838722ad714508a696d7e..087350ec8712a7b8ff4546666fd7a9bca349e097 100644 (file)
@@ -2138,7 +2138,6 @@ static int DRX_Start(struct drxd_state *state, s32 off)
                        }
                        break;
                }
-               status = status;
                if (status < 0)
                        break;
 
@@ -2249,7 +2248,6 @@ static int DRX_Start(struct drxd_state *state, s32 off)
                        break;
 
                }
-               status = status;
                if (status < 0)
                        break;
 
@@ -2316,7 +2314,6 @@ static int DRX_Start(struct drxd_state *state, s32 off)
                        }
                        break;
                }
-               status = status;
                if (status < 0)
                        break;
 
index 2d2778be2d2fb905e3ab449961b099eed89537b2..45cd5ba0cf8a1839ffed244e46479e753693cfd8 100644 (file)
@@ -674,7 +674,6 @@ static int PowerScan(struct tda_state *state,
                        Count = 200000;
                        wait = true;
                }
-               status = status;
                if (status < 0)
                        break;
                if (CID_Gain >= CID_Target) {