Skip to content

Commit

Permalink
staging: media: Fixed else after return or break warning
Browse files Browse the repository at this point in the history
The following patch fixes the checkpatch.pl warning:

drivers/staging/media/omap4iss/iss_csi2.c:811 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>
  • Loading branch information
Yeliz Taneroglu authored and Greg Kroah-Hartman committed Oct 2, 2014
1 parent ae35738 commit 4571c4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/media/omap4iss/iss_csi2.c
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,8 @@ __csi2_get_format(struct iss_csi2_device *csi2, struct v4l2_subdev_fh *fh,
{
if (which == V4L2_SUBDEV_FORMAT_TRY)
return v4l2_subdev_get_try_format(fh, pad);
else
return &csi2->formats[pad];

return &csi2->formats[pad];
}

static void
Expand Down

0 comments on commit 4571c4f

Please sign in to comment.