[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 4069234abed5432c7fbf2f867da9c0235d4eba37..8f2e1c277c5f3a02f8e5c5ef4978dc460a6a1e8c 100644 (file)
@@ -936,9 +936,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);