Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1440951

[PATCH] media: s5p-mfc Fix misspelled error message and checkpatch errors

From Shuah Khan <shuahkh@osg.samsung.com>
Newsgroups linux.kernel
Subject [PATCH] media: s5p-mfc Fix misspelled error message and checkpatch errors
Date 2016-07-12 00:40 +0200
Message-ID <rTS1Q-4LO-33@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Fix misspelled error message and existing checkpatch errors in the
error message conditional.

WARNING: suspect code indent for conditional statements (8, 24)
 	if (ctx->state != MFCINST_HEAD_PARSED &&
[...]
+               mfc_err("Can not get crop information\n");

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
---
 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
index a01a373..06061c4 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
@@ -775,11 +775,11 @@ static int vidioc_g_crop(struct file *file, void *priv,
 	u32 left, right, top, bottom;
 
 	if (ctx->state != MFCINST_HEAD_PARSED &&
-	ctx->state != MFCINST_RUNNING && ctx->state != MFCINST_FINISHING
-					&& ctx->state != MFCINST_FINISHED) {
-			mfc_err("Cannont set crop\n");
-			return -EINVAL;
-		}
+	    ctx->state != MFCINST_RUNNING && ctx->state != MFCINST_FINISHING
+	    && ctx->state != MFCINST_FINISHED) {
+		mfc_err("Can not get crop information\n");
+		return -EINVAL;
+	}
 	if (ctx->src_fmt->fourcc == V4L2_PIX_FMT_H264) {
 		left = s5p_mfc_hw_call(dev->mfc_ops, get_crop_info_h, ctx);
 		right = left >> S5P_FIMV_SHARED_CROP_RIGHT_SHIFT;
-- 
2.7.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] media: s5p-mfc Fix misspelled error message and checkpatch errors Shuah Khan <shuahkh@osg.samsung.com> - 2016-07-12 00:40 +0200
  Re: [PATCH] media: s5p-mfc Fix misspelled error message and  checkpatch errors Joe Perches <joe@perches.com> - 2016-07-12 16:10 +0200
    Re: [PATCH] media: s5p-mfc Fix misspelled error message and  checkpatch errors Shuah Khan <shuahkh@osg.samsung.com> - 2016-07-12 16:50 +0200
      Re: [PATCH] media: s5p-mfc Fix misspelled error message and  checkpatch errors Joe Perches <joe@perches.com> - 2016-07-12 18:00 +0200
        Re: [PATCH] media: s5p-mfc Fix misspelled error message and  checkpatch errors Shuah Khan <shuahkh@osg.samsung.com> - 2016-07-12 18:10 +0200
          Re: [PATCH] media: s5p-mfc Fix misspelled error message and  checkpatch errors Joe Perches <joe@perches.com> - 2016-07-12 18:20 +0200
  Re: [PATCH] media: s5p-mfc Fix misspelled error message and  checkpatch errors Javier Martinez Canillas <javier@osg.samsung.com> - 2016-07-12 17:10 +0200
  Re: [PATCH] media: s5p-mfc Fix misspelled error message and  checkpatch errors Shuah Khan <shuahkh@osg.samsung.com> - 2016-07-12 17:10 +0200
  Re: [PATCH] media: s5p-mfc Fix misspelled error message and  checkpatch errors Javier Martinez Canillas <javier@osg.samsung.com> - 2016-07-12 17:10 +0200

csiph-web