Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3368202ybc; Mon, 25 Nov 2019 13:19:17 -0800 (PST) X-Google-Smtp-Source: APXvYqyX+3MTeByKCU+HqGPxCuZrqBuZTj85pqBFbbNcOP9aCNhmu2YdbTMn+xsl+lEW1BNVGeM0 X-Received: by 2002:aa7:da0e:: with SMTP id r14mr21178426eds.49.1574716757820; Mon, 25 Nov 2019 13:19:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574716757; cv=none; d=google.com; s=arc-20160816; b=N/dmt7NJRS4oQsk5HJpD4qiYdTnxUQUGJEkXYnQia66IAoKucYUGfarKqjVzYOERX5 4/CLxlKIsrfD7bsq5W+VJBWxXbtKYnxHX444kxG8SBajeNKZb6ih6C8pkEQkVMJpqolr e/HIVBoYlJuRciQru/1YfnigGrZogLbLQ5SfiSYBgayV9Yp+r3YnCYHUqEMmNor+cXCX iiC+cPTDZP1PaPKUJIU0wCRsyFCb8GrqMoTCJBo9sfRT/en5W6nLjfj4zrrQ5Sd3+BYs JQae/DeLgqzgARO75tOaJ39sv0BQX5QcOrnK6uUSNGJVVZ7XY/m7simKG9dpkvNusfj3 Wslg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=LEl152YUeXSTS4b+16Y4exuVJ06qJed/Vqhtfk5q/pI=; b=oDnieHPNTf+kePWd9a91yH6xon1PQ1oNBm+Vk1SvuDInrVoyc2WFQpM8vmAWCZhSya qzE2bakHW4MMoN2TlNQhrsXeW5QT5SP70QfK048NdUtUiFDyN9gjeR13/u6n6fuX4iz2 kdk+6bASb9JRsMGNq8UcNPMbvhScsIBAIKjXGYj7GmcJefwak8yaT6gxEaCf3jn5NIoV BgjXmlWkBuOJRMnfCsw4jS2LDuCS9o/OCHege1lkoAvKv0frvu93T3Ni6+stO1Y6abcF bBf8+NWtycPX6PDg1hiDTq56fGIurh1gYQcKn/6XC0x74Me/JOASv0s9sdqf2kEKfV60 bNpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LODZkgxB; 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 x23si6652484edl.72.2019.11.25.13.18.52; Mon, 25 Nov 2019 13:19:17 -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=LODZkgxB; 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 S1726937AbfKYVOL (ORCPT + 99 others); Mon, 25 Nov 2019 16:14:11 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:42057 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725882AbfKYVOL (ORCPT ); Mon, 25 Nov 2019 16:14:11 -0500 Received: by mail-pg1-f194.google.com with SMTP id q17so7796903pgt.9; Mon, 25 Nov 2019 13:14:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=LEl152YUeXSTS4b+16Y4exuVJ06qJed/Vqhtfk5q/pI=; b=LODZkgxBx/zYJwnllCZgzc8WFXAMiPnYRKMa1ei2W4bB2oAayE+Vi0W25iOdVVIWW1 Hq/z2mINS/PXCRg7vYcAZp3Qwkw2KLMpYyXRtCyWVqqPdWiqEkCEsJdZnRvX6MLT1I+L zxEGqStuPqEme964Dx8Z7VBaozqwreRjcMvEpedTWLZORtKiqZjomkf+/Ci4HJlf1oaD A1BoHJulPrhEUErebnHQgesj0TLX+zAxIpouIyfuezt42WvW6kclAvY0lcEgJHxiXuPH NOyHPSk9i+6vcAIj00sJ2q++VtvB4VndYiyZFleUAXjHb/pCdN3OrbS7CbhUbZkxbI/4 6utQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=LEl152YUeXSTS4b+16Y4exuVJ06qJed/Vqhtfk5q/pI=; b=CADzLCLpEFotaCReZmGINqxk0wrPVicUnguX7tPxdrrLavs7B07OvIPKvlObUKe8ws r3btdbtUuHNjrvdIkv0eeFHLb4twoAmtSOr42XZeSGppOrg7jKcCRM9ctV1JP1EbMGjt skgkXpkgO53KBoVuw1JYDbDkK35WAH3h+uLRSaPNuqWDFzniovGjctov8tboU0ZfTKvb YDJQBQgMNITbDCTQK7TV2wAq1KHp6CQYnb95lPe16UsfHxwH6Xk/YprsmW5zUiuDFaYw 2NJ/oBMNq+FTpkEziKUoLvDO61Pio4VHxnbVz4Ihty3pHeXZNBgKWi/fCQrQoTrBObbO fZwg== X-Gm-Message-State: APjAAAX6uOFF2HqunAIyGxXnpUT5qif89887C2C0TyLnu2CpKwdF4i/9 5loModW0NYU7VtHKWAzk0vE6UFd3 X-Received: by 2002:a63:e90f:: with SMTP id i15mr35235521pgh.9.1574716450271; Mon, 25 Nov 2019 13:14:10 -0800 (PST) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id x15sm9539925pgj.94.2019.11.25.13.14.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Nov 2019 13:14:09 -0800 (PST) Date: Mon, 25 Nov 2019 13:14:07 -0800 From: Dmitry Torokhov To: linux-input@vger.kernel.org Cc: Anson Huang , Robin van der Gracht , linux-kernel@vger.kernel.org Subject: [PATCH] Input: snvs_pwrkey - remove gratuitous NULL initializers Message-ID: <20191125211407.GA97812@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Gratuitous NULL initializers rarely help and often prevent compiler from warning about using uninitialized variable. Let's remove them. Signed-off-by: Dmitry Torokhov --- drivers/input/keyboard/snvs_pwrkey.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/keyboard/snvs_pwrkey.c b/drivers/input/keyboard/snvs_pwrkey.c index fd6f244f403d..2f5e3ab5ed63 100644 --- a/drivers/input/keyboard/snvs_pwrkey.c +++ b/drivers/input/keyboard/snvs_pwrkey.c @@ -108,8 +108,8 @@ static void imx_snvs_pwrkey_act(void *pdata) static int imx_snvs_pwrkey_probe(struct platform_device *pdev) { - struct pwrkey_drv_data *pdata = NULL; - struct input_dev *input = NULL; + struct pwrkey_drv_data *pdata; + struct input_dev *input; struct device_node *np; int error; u32 vid; -- 2.24.0.432.g9d3f5f5b63-goog -- Dmitry