From patchwork Mon Jul 11 22:39:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 9224369 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2D53B60760 for ; Mon, 11 Jul 2016 22:39:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F4D027CF9 for ; Mon, 11 Jul 2016 22:39:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 138F327E15; Mon, 11 Jul 2016 22:39:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2EC7427CF9 for ; Mon, 11 Jul 2016 22:39:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752406AbcGKWjH (ORCPT ); Mon, 11 Jul 2016 18:39:07 -0400 Received: from resqmta-po-11v.sys.comcast.net ([96.114.154.170]:41260 "EHLO resqmta-ch2-11v.sys.comcast.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751780AbcGKWjG (ORCPT ); Mon, 11 Jul 2016 18:39:06 -0400 Received: from resomta-po-05v.sys.comcast.net ([96.114.154.229]) by resqmta-po-11v.sys.comcast.net with SMTP id MjqMbI6WcmNqqMjqyb8fiE; Mon, 11 Jul 2016 22:39:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1468276744; bh=rHyItwrkSBxeRPK1yDpHEEopPZNDmf7Hz1GMWmi2hDA=; h=Received:Received:Received:From:To:Subject:Date:Message-Id; b=N19/t7HQltD21aZgM7+k1koh4VRDboBUNhIdOeZhviNWC++XVVrLIxfolXU3YIgVe z42+dsZBNr82LPUiZtX9jfPKIfIBz/8ejtF1+UhO6rgd3hsiuqfjfcSEYq1JtLG+Yz 4BmAddQ4dTTzjULgCzxH8Z3K3o1mBLeGPNVZxBrGp+u47/FFZ3xzGIrAKUBig3KzYy cAmfNr5s4hTbrHTrZqLyO5bss8SzU+qHvsGg070MgGO3/9uGjZHzEiVLIfcDBdXKgh ziWEF3muwFc5c6Xt/QZ6AXnmFqal8Y4QOvLGRVeHKH6veumbv/HNQbi6q0WYSy9Cwd X4n7/GOPgZJXg== Received: from mail.gonehiking.org ([73.181.52.62]) by comcast with SMTP id MjqxbJY08X3mOMjqxbdPKh; Mon, 11 Jul 2016 22:39:04 +0000 Received: from shuah-XPS-13-9350.sisa.samsung.com (shuah-xps.internal [192.168.1.87]) by mail.gonehiking.org (Postfix) with ESMTP id ABF149F35B; Mon, 11 Jul 2016 16:39:02 -0600 (MDT) From: Shuah Khan To: kyungmin.park@samsung.com, k.debski@samsung.com, jtp.park@samsung.com, mchehab@kernel.org, javier@osg.samsung.com Cc: Shuah Khan , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: s5p-mfc Fix misspelled error message and checkpatch errors Date: Mon, 11 Jul 2016 16:39:00 -0600 Message-Id: <1468276740-1591-1-git-send-email-shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.7.4 X-CMAE-Envelope: MS4wfGvIjrZufHNciQ4eJaCHYojgMb+tgW/8Hy4/oHZKH439HIbSbFbmLKqtiklYtT0J1XrEBqOJR6Lq9LCMXoKC3aFnYGpEGedQKkjNCRI0FzrjYXmi3Pn2 IKOBV/paazysSVKCRWq54OnMPKqzdXUDXEw79VsXWHdNPPmoiY01zKW8l6uBvodk+y0M4c+KZW8D0olWf57j4iA1VtxJz2DA8a4p/A+EcXojYd3xT5K5XxD+ INGPnpa7Ri9RI5mlN2e98R5udHEkT+GPaem+yUCHQDugsRKHkIpFGoSLqN6/Hqs82wei6YR2qbwc508rGILcNOnW4PFp2ixqZnSDHA7Yk1r5DPuNTEapcq6C V7d7kKLgd/kOcw2Yx81bQCB0jamxU8NzxohlSvPRPo3dGmejl+ZkxxAPZD8oW2zP9DrzrwKnt2VFYHEUmjHb4357oQegjZyht1pNjj/uZwmeVn+ggkunLuar D+WsWvcZtAaew2/9 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Javier Martinez Canillas --- 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;