From patchwork Tue Jan 3 20:06:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baruch Siach X-Patchwork-Id: 9495537 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 7A9F760413 for ; Tue, 3 Jan 2017 20:07:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D2A0269E2 for ; Tue, 3 Jan 2017 20:07:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 607AB27CAF; Tue, 3 Jan 2017 20:07: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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 43BF6269E2 for ; Tue, 3 Jan 2017 20:07:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761127AbdACUHH (ORCPT ); Tue, 3 Jan 2017 15:07:07 -0500 Received: from guitar.tcltek.co.il ([192.115.133.116]:55465 "EHLO mx.tkos.co.il" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757814AbdACUHG (ORCPT ); Tue, 3 Jan 2017 15:07:06 -0500 Received: from sapphire.tkos.co.il (unknown [10.0.4.3]) by mx.tkos.co.il (Postfix) with ESMTPA id C8C3A440531; Tue, 3 Jan 2017 22:06:44 +0200 (IST) From: Baruch Siach To: "Lad, Prabhakar" Cc: linux-media@vger.kernel.org, Baruch Siach Subject: [PATCH] [media] ov2659: remove NOP assignment Date: Tue, 3 Jan 2017 22:06:56 +0200 Message-Id: <482780de49218de0cb275cad11a83aff3d556db2.1483474016.git.baruch@tkos.co.il> X-Mailer: git-send-email 2.11.0 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 The loop over the ov2659_formats[] array just a few line above verifies that mf->code matches the selected array entry. Signed-off-by: Baruch Siach --- drivers/media/i2c/ov2659.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/i2c/ov2659.c b/drivers/media/i2c/ov2659.c index 1f999e9c0118..6e6367214d40 100644 --- a/drivers/media/i2c/ov2659.c +++ b/drivers/media/i2c/ov2659.c @@ -1121,7 +1121,6 @@ static int ov2659_set_fmt(struct v4l2_subdev *sd, return -EINVAL; mf->colorspace = V4L2_COLORSPACE_SRGB; - mf->code = ov2659_formats[index].code; mf->field = V4L2_FIELD_NONE; mutex_lock(&ov2659->lock);