staging: media: omap4iss: Fixed else after return or break warning
authorYeliz Taneroglu <yeliztaneroglu@gmail.com>
Thu, 2 Oct 2014 19:09:47 +0000 (22:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Oct 2014 20:51:03 +0000 (13:51 -0700)
The following patch fixes the checkpatch.pl warning:

drivers/staging/media/omap4iss/iss_ipipe.c:184 warning: else is not generally useful after a break or return

Signed-off-by: Yeliz Taneroglu <yeliztaneroglu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/omap4iss/iss_ipipe.c

index 6eaafc5e2eea75a921cfd8fa980229a47a7f2905..54042008154cecaf78693502e8bd704b2b6d887a 100644 (file)
@@ -181,8 +181,8 @@ __ipipe_get_format(struct iss_ipipe_device *ipipe, struct v4l2_subdev_fh *fh,
 {
        if (which == V4L2_SUBDEV_FORMAT_TRY)
                return v4l2_subdev_get_try_format(fh, pad);
-       else
-               return &ipipe->formats[pad];
+
+       return &ipipe->formats[pad];
 }
 
 /*