Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp738063ybf; Sat, 29 Feb 2020 14:50:04 -0800 (PST) X-Google-Smtp-Source: APXvYqyOsmIV9WuFZ+Kwc1XNohhBlMz/JJ+hL+7k/wJnPL4DWQaz6NcFh8FG6jwdVkBuKwgLo0Ly X-Received: by 2002:aca:c08b:: with SMTP id q133mr6927265oif.46.1583016604179; Sat, 29 Feb 2020 14:50:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583016604; cv=none; d=google.com; s=arc-20160816; b=ceqH4MtwW9VwwMCWMx/ei+HU5qp98LYA16BaBtCMeW2+3nyNyrDFm4aW/cE9+EuGiM pQbLRDZw8jllaa6WPAalwL7TQNP4zKkGU7b+UcU7w1ziv/Kk/loK9FDGhakS/pAu6lPq CDq/NeJaQUEur4XxysZ5j4ZSJ/wQEC4fXPfRp6saeleE7Y3tVHmzlfeUn8GaF8byKMuD T4Zmfl+rA6XAiQXxZ016Qy1Z7LxuTthHA+s3/KMDGvYDQbMInNMAT+TxEAOUxTzF375h 3L6UBiFqffIe4pDddDZc5iRg7QgJ5SYCn2rS2wQ8nGLPBH4W5P1jeDsl9Ms/PS1hyQeg Xe7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=bnQfnjDKjbuLk4iXEXKVzU4cM8t78hJujods7dtdoDY=; b=Tq5Z9uNeSz7ABLPasM9pszSj/JK0DE6fyQ9buxRzclkdChmHn4fPHgLV7Hytu24U8j ni8puva5dDYtLv6Zu2W5RW/yzp5+/VEpngGZ2UC7194GHsM0uCTf+aDFYT8u6fTRsOLJ w/pw/tlxtVhmsUImu+/qgdkeqIjVA+pwbjAFS+oex4chkzmQObByv2nLvh80NYY60OdG +dLxNIWCiYjzGCY69RXhzeiCfq/o57Y4Z87devzqgpwoIUfReWAHc7WIsO1+YTkSCYdp ev+j3y0Hi0q5ShlFSllxXA52ui7XNTZFbaIcgCS45nbum2h4d5qx00LchZeL1cS0XAN8 H2ug== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i20si3793450ota.82.2020.02.29.14.49.51; Sat, 29 Feb 2020 14:50:04 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727538AbgB2Wsd (ORCPT + 99 others); Sat, 29 Feb 2020 17:48:33 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:43944 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726786AbgB2Wsd (ORCPT ); Sat, 29 Feb 2020 17:48:33 -0500 Received: by mail-wr1-f67.google.com with SMTP id e10so6384486wrr.10; Sat, 29 Feb 2020 14:48:31 -0800 (PST) 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=bnQfnjDKjbuLk4iXEXKVzU4cM8t78hJujods7dtdoDY=; b=MC94tTx30OOsidG2bXTG8W7lE/bx42mktdPBpYKWt3jvi6tlJ6o1DcAs04yP9MCJF3 7gef8tsUsIIUkjrc4VGu7AIl4svpCniHzO1PVqWv3f5j3KXDg+t6w8lYzAmne/UFs1bQ kY/66axeLXtXb6vYRoCVGp5rYNBpRjJQY0MXwO/MeP2gDCfgw0iEsVFRcvbLPDWpf8yi uxQnFB57Kc1KlBNiTNgqnul8ENOl7HFlbyZdVQX/+h340mBkXoL6tY9fSS92aMZhIfMF ykHrWpzwxS6y6Uh4EPs8cIm95AtWwsmQXIM+dkq2r/kLhPGmhIPY1AYZHK38ZY7a/hjh r1vg== X-Gm-Message-State: APjAAAVel8uilhsPdgye7qC6s5T74AU5iMlAljER2YdzMuuNwCEmST0S wA/gX6eNe3CT72uQGQimbGk= X-Received: by 2002:a5d:5301:: with SMTP id e1mr11617231wrv.44.1583016511090; Sat, 29 Feb 2020 14:48:31 -0800 (PST) Received: from debian (41.142.6.51.dyn.plus.net. [51.6.142.41]) by smtp.gmail.com with ESMTPSA id d17sm7845287wmb.36.2020.02.29.14.48.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Feb 2020 14:48:30 -0800 (PST) Date: Sat, 29 Feb 2020 22:48:28 +0000 From: Wei Liu To: Lucas Tanure Cc: "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Sasha Levin , Jiri Kosina , Benjamin Tissoires , linux-hyperv@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Wei Liu Subject: Re: [PATCH] HID: hyperv: NULL check before some freeing functions is not needed. Message-ID: <20200229224828.pnbtco2f6shvy2vh@debian> References: <20200229173007.61838-1-tanure@linux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200229173007.61838-1-tanure@linux.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 29, 2020 at 05:30:07PM +0000, Lucas Tanure wrote: > Fix below warnings reported by coccicheck: > drivers/hid/hid-hyperv.c:197:2-7: WARNING: NULL check before some freeing functions is not needed. > drivers/hid/hid-hyperv.c:211:2-7: WARNING: NULL check before some freeing functions is not needed. > > Signed-off-by: Lucas Tanure Reviewed-by: Wei Liu