From patchwork Fri Feb 9 23:11:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 10210085 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 F347460245 for ; Fri, 9 Feb 2018 23:11:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EBCAB237F1 for ; Fri, 9 Feb 2018 23:11:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E0283299BB; Fri, 9 Feb 2018 23:11:38 +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 442C0237F1 for ; Fri, 9 Feb 2018 23:11:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753124AbeBIXLg (ORCPT ); Fri, 9 Feb 2018 18:11:36 -0500 Received: from mail-qk0-f193.google.com ([209.85.220.193]:42457 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753114AbeBIXLf (ORCPT ); Fri, 9 Feb 2018 18:11:35 -0500 Received: by mail-qk0-f193.google.com with SMTP id c185so4570540qkg.9 for ; Fri, 09 Feb 2018 15:11:35 -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=ABJTzm3gsxXJ1FlJcgqNN2iu0l0MY75rMdtvs6fqY5Y=; b=sMIRwN4VxOh/NktMqz0+YHS0NBc99Q9hR/xiOCoLraLZCaOl1EzFezgi291Pn9vJCu YoJJQKmcZgJgD2CBMAV2lhyGQTZ64gzSAMl5fvQuTC0ZJjTX2i/CAPwfVf3WmPUa+J2A w/84AJimgMgCTwvzODgAltTId++k0/hXT4FgNwcgK2pYsfGF5ey5SXbJqf4fXVUkMxXL newVcgKn/6VCrD5MmS6TlQYhnvHB759kpvyrp7ujjanbuzqPx5PCRsfcPu6i9oVs9lda 8VyEucUtjtihWqJAhGFAca9tESr50ez7CEz0W7f4vTa4SY+I76lMSs9kmB2s31bG/Jhc I7ag== 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=ABJTzm3gsxXJ1FlJcgqNN2iu0l0MY75rMdtvs6fqY5Y=; b=V0RJRBo9cfZTrxr0Sjqx8BQINuzOr2NCEHHxoZk1xDtw45/hfrBP6VZcYU4Osjqky4 RY9hJ/giDRvYeYerYUZe6fIFCdtPCKVRfcBzqUYnUv6VwIAJIE6VeMQBHcR0wJHObwC4 27mdTOH+USBSB7KPnkutVCnm4BAvCroTHiAwj+HbJC5qA8mYo2PuqU7qPxNLny/nivcd JrGFXoCPMOPnhjPINGtPdtMPZoI//O6PrJUjhPLW7PEpSv0nxpm+d4ojqYUKho32ytbE S1URVeZzgeNFUyOfI72VDFj23QgjWIdFc0kNbFd0DhdfhLg5xaMA52+MKMX/IGROp4ok oTpA== X-Gm-Message-State: APf1xPCMq1NTkCCwfM+gWtaOZPawwQ6t8bghjbEmeBowkyN5n2VMNMaC /tguvd7lvZeHH1H5QwQuW7k= X-Google-Smtp-Source: AH8x226lNpbQdd69FEowFONAXefDvfZqyowN3cfyfVpPz6VzXQQp8h/UAP8r99TUKsgxHICpSvUb0Q== X-Received: by 10.55.46.194 with SMTP id u185mr6613911qkh.47.1518217894840; Fri, 09 Feb 2018 15:11:34 -0800 (PST) Received: from localhost.localdomain ([187.180.181.130]) by smtp.gmail.com with ESMTPSA id l66sm2548733qkf.87.2018.02.09.15.11.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Feb 2018 15:11:34 -0800 (PST) From: Fabio Estevam To: mchehab@kernel.org Cc: slongerbeam@gmail.com, gregkh@linuxfoundation.org, linux-media@vger.kernel.org, ian.arkver.dev@gmail.com, hans.verkuil@cisco.com, p.zabel@pengutronix.de, Fabio Estevam Subject: [PATCH v2] media: imx-media-internal-sd: Use empty initializer Date: Fri, 9 Feb 2018 21:11:16 -0200 Message-Id: <1518217876-7037-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 When building with W=1 the following warning shows up: drivers/staging/media/imx/imx-media-internal-sd.c:274:49: warning: Using plain integer as NULL pointer Fix this problem by using an empty initializer, which guarantees that all struct members are zero-cleared. Signed-off-by: Fabio Estevam Acked-by: Steve Longerbeam --- Changes since v1: - Use empty initializer insted of memset() - Ian drivers/staging/media/imx/imx-media-internal-sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/imx/imx-media-internal-sd.c b/drivers/staging/media/imx/imx-media-internal-sd.c index 70833fe..daf66c2 100644 --- a/drivers/staging/media/imx/imx-media-internal-sd.c +++ b/drivers/staging/media/imx/imx-media-internal-sd.c @@ -271,7 +271,7 @@ static int add_internal_subdev(struct imx_media_dev *imxmd, int ipu_id) { struct imx_media_internal_sd_platformdata pdata; - struct platform_device_info pdevinfo = {0}; + struct platform_device_info pdevinfo = {}; struct platform_device *pdev; pdata.grp_id = isd->id->grp_id;