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: 9224373 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 604B160760 for ; Mon, 11 Jul 2016 22:40:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 515C027DB3 for ; Mon, 11 Jul 2016 22:40:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 45F8A27E15; Mon, 11 Jul 2016 22:40:55 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D16CD27DB3 for ; Mon, 11 Jul 2016 22:40:54 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bMjrO-00010F-IE; Mon, 11 Jul 2016 22:39:30 +0000 Received: from resqmta-po-09v.sys.comcast.net ([2001:558:fe16:19:96:114:154:168]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bMjrK-0000vO-Pt for linux-arm-kernel@lists.infradead.org; Mon, 11 Jul 2016 22:39:27 +0000 Received: from resomta-po-05v.sys.comcast.net ([96.114.154.229]) by resqmta-po-09v.sys.comcast.net with SMTP id MjpIbmbbKrlQrMjqybCf10; 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=EPqLGcf/Uv41UvNEMpLkSjx1y+dg5V/MSesHRrg3Nlr1R5QeM902pFBFXKwTi7hOp MCfmzvqaIccctYxKp5L/iFGtX/ttaA+9LYfftb/gCT9uufxep3MR712jrQ6RqUTJay SxTEtXIBne/gSc33DHobCfeMuwLU4C4k1EzrmG5iIJpe/r8hwt0goTb9b8c5eJa7C7 q00kAvidmwxlG5LrOXlulkx+00+JedYjweMNwchpEYiBhyKA1syv71p6xHz4x6rwLw v+PkCQA06V34fJgpLQz5RItW5CpVHU1AfQg9D37mrQreXecVhrtPo72qhQ6PGfNtEa sSdX9vsCUmYpQ== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160711_153926_934047_C13E13CE X-CRM114-Status: UNSURE ( 7.21 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, Shuah Khan , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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;