]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: media: omap4iss: Removed unnecessary else expression.
authorGulsah Kose <gulsah.1004@gmail.com>
Sat, 27 Sep 2014 19:34:33 +0000 (22:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 03:03:25 +0000 (23:03 -0400)
This patch fixes "else is not generally useful after a break or return"
checkpatch.pl warning iss_resizer.c

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

index ae831b8985c98f8807e954b11df1d1fb37ba4369..a21e356cce3a3907cf26c69f9dac09858597342d 100644 (file)
@@ -441,8 +441,7 @@ __resizer_get_format(struct iss_resizer_device *resizer,
 {
        if (which == V4L2_SUBDEV_FORMAT_TRY)
                return v4l2_subdev_get_try_format(fh, pad);
-       else
-               return &resizer->formats[pad];
+       return &resizer->formats[pad];
 }
 
 /*