Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7337963imu; Mon, 3 Dec 2018 11:12:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/VRw28sw+CrJ0Rh+yDVhHWMNZqRcdHtt7DislYLf5wmcCdZjj1KG8bAwljZTywSk4ZDb+Tc X-Received: by 2002:a17:902:d891:: with SMTP id b17mr17514969plz.80.1543864362345; Mon, 03 Dec 2018 11:12:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543864362; cv=none; d=google.com; s=arc-20160816; b=maJjydFvd6E9aaiOml6ItTy6vMZm4bxIZsMISOMJLjmme5umly3jM8kSdIrh/uyx6t iFztZLMeikJzoEdkd+/wNvcbrHUrKnd9yvUQqsmXqYgA2h/Cx25BLMz+cBtNleQAfbya RS3NvLsOGXooMhrP3xfVs0ImTuHA6SpvqO8KWQFNTQLj9jJVisWnYL1GieeBgacgTtcf 0BG5PhABSBZ7vhYkwcO4rKMNjTpwWOhfKOTnk386cZympmSXN4kcShtDdat1y9OM/xUY al51atN6X424iCDmcvk1sRjUW07L+Q7d2ke4EnQ4HKUNYQMWwnSSPHha+rGEs3vFLZAV IDfQ== 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=tJayU86gN5c7gVFAdfJTKIdp6WisZ945WpWlRBdBUXI=; b=lTTJ6ae1GNtybZEExecG2TsVCsmwKNk+Vr50G+VdU+KMYZPf5z0DkGPLxjv3KJFZSQ Uf8LGh1tL9fLROP7hRNp3GZGnTJTe3YwXmpLMljX62NPub1EL3e2I5opG5CrZra0gpwe fSW2HiQz+z1P8QzCljdktyN4oSZ0hjmZA130sEUTU90BXzBBW83a6nTKQt7WrOngVE6/ lgD8+CuF+SfXdjBiazcFvEsqRJWUppjcqsmunb3a/CvBL4DI4rs7s9AjqtiqKKR4e9TT a1RnohxVK6vrU0TWiqprLxFwaydPDQHuJvwy8EgZJRIJxFUclQwsRVJ/rcvXrIb32kHV l/MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=benXf2jf; 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 e4si12961056pgd.256.2018.12.03.11.12.26; Mon, 03 Dec 2018 11:12:42 -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=benXf2jf; 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 S1726089AbeLCTLH (ORCPT + 99 others); Mon, 3 Dec 2018 14:11:07 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:40298 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbeLCTLH (ORCPT ); Mon, 3 Dec 2018 14:11:07 -0500 Received: by mail-qk1-f193.google.com with SMTP id y16so8049662qki.7; Mon, 03 Dec 2018 11:11:05 -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=tJayU86gN5c7gVFAdfJTKIdp6WisZ945WpWlRBdBUXI=; b=benXf2jfPkK4cW6HMhQubkWj/IEckmwNSFv16biN+10qPVFiByOmM7cKu5OnRSHa8y N4+6OrRDQfPXJ1H+VQ4yoBUbMCYIh6Taxi0FbMcLjLDpkDji41x9clu1PF6Bn/Q/gB2+ 24s8oAI/fw1x2zoeESRRF9Z5k7nbThONC7tQ1jAONPkXYVsPWaRqGWwUKOwNWGLh30F0 hWXABzqGWwvnx4A0ERnRll/UQeJenaivHdUP+8dk289Ypvhjfp2ezYJ6Vvm6JqDdA/8B pdPo4JC2OWiQRPsJjzxvDiqHxzF3UVMADsfOuIPUqR1Gid73c2yqqkcANcNPCf7Ym02G jPcw== 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=tJayU86gN5c7gVFAdfJTKIdp6WisZ945WpWlRBdBUXI=; b=WbC8E0Dar1nj1eDcreA4Ei+pG5vCovjFVpHKQAi3CUiQViCWLQ+4o2ZSkTf9kHyc7x DE5EQVier5tQPCBTBF3/XEDlyCorn6YqYUSCgDdYq2rF70rEQKtUzxT4/Ld7LxPHtCnL VQTEWemDZcjMwuoKsxgYsYoYZuRaC5QZqAsAHS5T5Cm5QkN2OrmCR2cU8nfqcWb/JCvc nVv1vNhunsMIylJMylh6r3IOKiGQxNxMOPrDzveieoogHJzZcXsB48/FF5oSEgwNqakr cVe8nsqpl4VvZ3LuAX7HYsDNNggj9d9AyiYTLFCYRLmkPkqT2QQ6UcVd1Z8vJQeR3pHx CPmQ== X-Gm-Message-State: AA+aEWYOnpdrXsiu3CLpDNhMxl67t1BDp0HU99rcv25B9BZCKjPRR3HR ZdD+8aOv0wN72z41egwUFnx5c6fW42WIFGjDRnA= X-Received: by 2002:a37:c3c3:: with SMTP id r64mr15874899qkl.70.1543864264816; Mon, 03 Dec 2018 11:11:04 -0800 (PST) MIME-Version: 1.0 References: <1543760930050-1499171309-0-diffsplit-thomas@m3y3r.de> <1543760930051-726829870-3-diffsplit-thomas@m3y3r.de> In-Reply-To: <1543760930051-726829870-3-diffsplit-thomas@m3y3r.de> From: Andy Shevchenko Date: Mon, 3 Dec 2018 21:10:53 +0200 Message-ID: Subject: Re: [PATCH] platform/x86: intel_ips: NULL check before some freeing functions is not needed. To: thomas@m3y3r.de Cc: Darren Hart , Andy Shevchenko , Platform Driver , Linux Kernel Mailing List 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 On Sun, Dec 2, 2018 at 10:55 PM Thomas Meyer wrote: > > NULL check before some freeing functions is not needed. Pushed to my review and testing queue, thanks! > > Signed-off-by: Thomas Meyer > --- > > diff -u -p a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel_ips.c > --- a/drivers/platform/x86/intel_ips.c > +++ b/drivers/platform/x86/intel_ips.c > @@ -1300,8 +1300,7 @@ static const struct file_operations ips_ > > static void ips_debugfs_cleanup(struct ips_driver *ips) > { > - if (ips->debug_root) > - debugfs_remove_recursive(ips->debug_root); > + debugfs_remove_recursive(ips->debug_root); > return; > } > -- With Best Regards, Andy Shevchenko