[media] usb/airspy: removing unneeded goto
authorManinder Singh <maninder1.s@samsung.com>
Thu, 25 Jun 2015 09:58:58 +0000 (06:58 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 11 Aug 2015 15:50:18 +0000 (12:50 -0300)
This patch removes unneded goto,
reported by coccinelle.

Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Reviewed-by: Akhilesh Kumar <akhilesh.k@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/airspy/airspy.c

index 4069234..8f2e1c2 100644 (file)
@@ -937,9 +937,6 @@ static int airspy_set_if_gain(struct airspy *s)
        ret = airspy_ctrl_msg(s, CMD_SET_VGA_GAIN, 0, s->if_gain->val,
                        &u8tmp, 1);
        if (ret)
-               goto err;
-err:
-       if (ret)
                dev_dbg(s->dev, "failed=%d\n", ret);
 
        return ret;