media: dvb-frontends/stv0367: remove redundant self assignment of temporary
authorColin Ian King <colin.king@canonical.com>
Tue, 21 Nov 2017 15:07:45 +0000 (10:07 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 13 Dec 2017 13:04:20 +0000 (08:04 -0500)
The self assignment of temporary is redundant and can be removed.
Detected using 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/stv0367.c

index f3529df..ebad100 100644 (file)
@@ -1547,7 +1547,6 @@ static int stv0367ter_read_ber(struct dvb_frontend *fe, u32 *ber)
        } else if (abc == 0x7) {
                if (Errors <= 4) {
                        temporary = (Errors * 1000000000) / (8 * (1 << 14));
-                       temporary =  temporary;
                } else if (Errors <= 42) {
                        temporary = (Errors * 100000000) / (8 * (1 << 14));
                        temporary = temporary * 10;
@@ -1625,7 +1624,6 @@ static u32 stv0367ter_get_per(struct stv0367_state *state)
        else if (abc == 0x9) {
                if (Errors <= 4) {
                        temporary = (Errors * 1000000000) / (8 * (1 << 8));
-                       temporary =  temporary;
                } else if (Errors <= 42) {
                        temporary = (Errors * 100000000) / (8 * (1 << 8));
                        temporary = temporary * 10;