staging: media: omap4iss: Removed unnecessary else expression.
authorGulsah Kose <gulsah.1004@gmail.com>
Sat, 27 Sep 2014 19:30:52 +0000 (22:30 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 03:03:24 +0000 (23:03 -0400)
This patch fixes "else is not generally useful after a break or return"
checkpatch.pl warning iss_ipipeif.c

Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/omap4iss/iss_ipipeif.c

index 7bc1457624991b115841fe5689d7679d4e3beeb5..75f6a15ad2029ca4985b371ce6fc53a083bdeeba 100644 (file)
@@ -382,8 +382,7 @@ __ipipeif_get_format(struct iss_ipipeif_device *ipipeif,
 {
        if (which == V4L2_SUBDEV_FORMAT_TRY)
                return v4l2_subdev_get_try_format(fh, pad);
-       else
-               return &ipipeif->formats[pad];
+       return &ipipeif->formats[pad];
 }
 
 /*