Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5279358ybl; Tue, 14 Jan 2020 06:27:33 -0800 (PST) X-Google-Smtp-Source: APXvYqzxVKmLv6sqS4VRzDQtj/0sSSR+FEK6mdZGMZQZkUSgwSNE99j+E9T3DVQa1mIjwrkhVtdc X-Received: by 2002:a05:6830:114f:: with SMTP id x15mr16475593otq.291.1579012053890; Tue, 14 Jan 2020 06:27:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579012053; cv=none; d=google.com; s=arc-20160816; b=WsL0yPoJ8x+9o2ftNfmUDNQAoBUOKfE4eZ0g5tQqjxlE8VAilTl1nKk7qf4rQ3mGNx 0CKYZgyldprbFrbQYS8KFctzX+fIuPwQrW7r+n67mk18OQjUYCfLhVDMoyH18W6CY4Ar Y1L49maAD/KT5S4Rt/ILBfTdaPM03KabLAK8yk3wCaUwqFEEbK1xSWqvW7xKbTvs/0EP ott2a04h1Yy7I6CZ2NNmysc9HYmdM9bFCspuj/zXqiK8CkmavUWgy9QgULQrRo8S4By7 RKhhwmBykHAHZT5mNuHWhXRv15u6hDS4/fIWVPlI5/NrMaUym03uJDCYoa9IN5F5mz+X p5rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=sPuFWmGDBx3VY9Jzpyfn0aIZyXwJCyecc/87RTsvEfA=; b=GWUpUufpDgu1gnegmvI8diShbLpBfCoqTxTzoKIxeTXfu8w1IeaRvM8739pVsMy9CP rS0vR77fzJBen+oB3IkWFYZX0hOanIS2Yt49/BFbV3/Tj38OHS9bEZAJMmB1aPI8WEAk 4NSLzYrf0IQFL06fI75L+4sUhB/GQHJjcuRkoIAuO/5NLvbuTj5uXYFdxE3MP0bazpBX j15VLA+TfeVxDXnH8yk1Phw/6oQ4xG+6cKDaNmHrngZAbg7XiXK6RcDdo/GH/JqJH+2l B+yuAvlq3lSo/1ZBc/kmzfn8GNq7n7Ng834rZtFod2HIfIgcRkQGN0ZWRes8RIWJQeJi 3yfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DRb7UzFm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x16si8055461otp.184.2020.01.14.06.27.21; Tue, 14 Jan 2020 06:27:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DRb7UzFm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728905AbgANO02 (ORCPT + 99 others); Tue, 14 Jan 2020 09:26:28 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:40891 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbgANO01 (ORCPT ); Tue, 14 Jan 2020 09:26:27 -0500 Received: by mail-ot1-f67.google.com with SMTP id w21so12737851otj.7; Tue, 14 Jan 2020 06:26:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sPuFWmGDBx3VY9Jzpyfn0aIZyXwJCyecc/87RTsvEfA=; b=DRb7UzFmkhqx/FQMyGY7acy+G2ByTNFiQsdoan2tiY0KHLJQ37c1VCddyV92T0/TwJ ppkXQYTlEN+bcheveDBr0p2vgS0hjyPhN0OMxUzdIdtlxUxtdkEIK7hM+o/7PSHcHgEy ImRF1aLx+3gtX/Zw93mrQeze18oUDniVVoKxjffWS0uxpLSz6K7Gakg5S3oXP2ewKegz l0POR4NQXsNUSd/OHH+FXKAMAgSsZPrqYPUTy1ddXDPa4mABtAwKIJW106IaU3iLKRJD Cp7QhI6q/pxnUmevghLJ3N7HikNp1mZnVrubelGQ+dSl0NmsUTDw5ukoXmczD2/DrCr2 4Xpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sPuFWmGDBx3VY9Jzpyfn0aIZyXwJCyecc/87RTsvEfA=; b=TAqNIxIPB3CaNU4tJT0/WiTSEl7XikyTATY16ZJ2WP/W8h6Yp4o7dzvI81lyUcBMy8 UY6RG552cm61oV67QG/LPXxJiWVg7Ik8oNdxtqN2rOp8djXDo21uTHbKba8FQojfKamZ Q75f/PI7MZ3PVTVdelkje/7Vln3+r9hBpDYxjORr/wiu2AhXlmDy0k5FMmXYRQzpv+Yn obRA7Vmqtv+fPafmcZBqqUcbECYom1xs1FlDeJOq70t+hkZ38hXbecM0vaeTePBJFq4s m6cxk2LlFeoWaQk0bR7eBLG5CipQ2orhiX/+7cOW//LVHRqAc/+mwUH3ZaFtW0yvUHcb O1Ew== X-Gm-Message-State: APjAAAU2EoQCgf6SrjXrie6jmecgihkBIX8JRWjWSfN2VNbRq/GSIoSw HSoyi5pdtt8j7vG7BIIXoHZv1V6Lbk9wksd3WFc= X-Received: by 2002:a05:6830:147:: with SMTP id j7mr17413547otp.44.1579011986681; Tue, 14 Jan 2020 06:26:26 -0800 (PST) MIME-Version: 1.0 References: <20200113172038.99689-1-cengiz@kernel.wtf> In-Reply-To: <20200113172038.99689-1-cengiz@kernel.wtf> From: "Lad, Prabhakar" Date: Tue, 14 Jan 2020 14:26:00 +0000 Message-ID: Subject: Re: [PATCH] media: davinci: remove self assignment in vpfe To: Cengiz Can Cc: Mauro Carvalho Chehab , linux-media , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Cengiz, Thank you for the patch. On Mon, Jan 13, 2020 at 5:21 PM Cengiz Can wrote: > > There's a self assignment which has no effect. > > Removed self assignment. > > Signed-off-by: Cengiz Can > --- > drivers/media/platform/davinci/vpfe_capture.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/media/platform/davinci/vpfe_capture.c b/drivers/media/platform/davinci/vpfe_capture.c > index 916ed743d716..089648665cdf 100644 > --- a/drivers/media/platform/davinci/vpfe_capture.c > +++ b/drivers/media/platform/davinci/vpfe_capture.c > @@ -879,7 +879,6 @@ static int vpfe_enum_fmt_vid_cap(struct file *file, void *priv, > /* Fill in the information about format */ > pix_fmt = vpfe_lookup_pix_format(pix); > if (pix_fmt) { > - fmt->pixelformat = fmt->pixelformat; good catch, but the correct fix is to assign pix_fmt->pixelformat to fmt->pixelformat. Cheers, --Prabhakar Lad > return 0; > } > return -EINVAL; > -- > 2.24.1 >