From patchwork Sat Feb 10 14:38:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 10210523 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 976DD60236 for ; Sat, 10 Feb 2018 14:39:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7552728789 for ; Sat, 10 Feb 2018 14:39:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 66D322975D; Sat, 10 Feb 2018 14:39:24 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, 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 8842A28789 for ; Sat, 10 Feb 2018 14:39:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751030AbeBJOjR (ORCPT ); Sat, 10 Feb 2018 09:39:17 -0500 Received: from mail-qk0-f194.google.com ([209.85.220.194]:39101 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750907AbeBJOjQ (ORCPT ); Sat, 10 Feb 2018 09:39:16 -0500 Received: by mail-qk0-f194.google.com with SMTP id d72so13538840qkc.6 for ; Sat, 10 Feb 2018 06:39:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=PwBfaCqzQ/LI92MbfRcYyceLP1+4YIQA37sgI1i5W2Y=; b=jb+SeIvufnr8ZN8KSc9lPWp5zI7k+9zWj49sqLw4hyVugUXV8whW2szekJ1YDXz88T aC6FZMJb39qQqReYQuaQLPdSRf9zy5twDKhf07Ru7QSSmWim3u0+nOsoB1Kk8w8YN70N POc/V8AR/EYKqF0rY6vqWjcpSDG0MhRLKmEfxAQdVgm7Bdqf01AFUE5sUBo9fLF60CKT z4IwC98fKQPkNAaSYWA8Wsdj2g3JqxGgB6/I9R557HTOETblJcz97Ij9wgyjdG4syzGy DdVib5ImTfitzv35+m2fL0f47zjvbeQI//S85rDA5G3CC356mHBL2MwXSgW1e6B7sp2O 8GkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=PwBfaCqzQ/LI92MbfRcYyceLP1+4YIQA37sgI1i5W2Y=; b=mFC4aPZdoND6T3vkx92/B7uUEsUZKWzoP8yDqSXe8kPux+rIhOVJsmwdfGj+dTvKGP HRNNqoUbcmAnJKky7mWJHZcq/qhzq1HLTwvPaZS3Ry10uKl9CgKVSbTsfT5gIkPEaC2B 7O7mCyWCCMuk+R4zjAtXgkEOlMskkOZ0BfIZVVY66nG/c8NcRJzCyhS4oj8Mfo80GnpF SwiPznYyIhoildjV6eahvOH64kVjA1CAQiJJUKJZzriFn+RBsfZbMS/fj4mNO8RyrHYx OWi4aNaPOjdl8xG7FwyLnGHlC7QnDBPVNu6YvJ76Kujb5fpefkCQbMHHw/As5HQCfRVh 51WA== X-Gm-Message-State: APf1xPDUkaPjN6pM82z659f47NLB9SdDDsYoFFFIL6nyWU2M19AXETlo Fm7WNBFKoPNkFe90ALhxPSQ= X-Google-Smtp-Source: AH8x226O5mcetCcLgxfuKaZwIsLphyKtN/wTYJ14WNCJaJZk+dBGmhU7jVXzGc+c+A63FFouD8Oqyg== X-Received: by 10.55.138.134 with SMTP id m128mr9698059qkd.72.1518273555528; Sat, 10 Feb 2018 06:39:15 -0800 (PST) Received: from localhost.localdomain ([187.180.181.130]) by smtp.gmail.com with ESMTPSA id l6sm3606773qki.17.2018.02.10.06.39.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 10 Feb 2018 06:39:15 -0800 (PST) From: Fabio Estevam To: mchehab@kernel.org Cc: slongerbeam@gmail.com, p.zabel@pengutronix.de, linux-media@vger.kernel.org, Fabio Estevam Subject: [PATCH] media: imx-ic-prpencvf: Use empty initializer to clear all struct members Date: Sat, 10 Feb 2018 12:38:50 -0200 Message-Id: <1518273530-7265-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 2.7.4 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 From: Fabio Estevam {0} only cleans the first member of the structure. Use {} instead, which cleans all the members of the structure. Reported-by: Steve Longerbeam Signed-off-by: Fabio Estevam --- drivers/staging/media/imx/imx-ic-prpencvf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/imx/imx-ic-prpencvf.c b/drivers/staging/media/imx/imx-ic-prpencvf.c index 143038c..60f392a 100644 --- a/drivers/staging/media/imx/imx-ic-prpencvf.c +++ b/drivers/staging/media/imx/imx-ic-prpencvf.c @@ -923,7 +923,7 @@ static int prp_enum_frame_size(struct v4l2_subdev *sd, struct v4l2_subdev_frame_size_enum *fse) { struct prp_priv *priv = sd_to_priv(sd); - struct v4l2_subdev_format format = {0}; + struct v4l2_subdev_format format = {}; const struct imx_media_pixfmt *cc; int ret = 0;