Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756858AbcJQAph (ORCPT ); Sun, 16 Oct 2016 20:45:37 -0400 Received: from bear.ext.ti.com ([198.47.19.11]:38139 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753949AbcJQApg (ORCPT ); Sun, 16 Oct 2016 20:45:36 -0400 Subject: Re: [patch] power: supply: lp8788: remove an unneeded NULL check To: Dan Carpenter References: <20161014073328.GC15168@mwanda> CC: Sebastian Reichel , , , From: "Kim, Milo" Message-ID: <58041E10.8020700@ti.com> Date: Mon, 17 Oct 2016 09:40:48 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <20161014073328.GC15168@mwanda> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 313 Lines: 12 On 10/14/2016 4:33 PM, Dan Carpenter wrote: > We checked that "pdata->chg_params" is non-NULL earlier in this function > so when we add "i" to it, it's still non-NULL. > > Signed-off-by: Dan Carpenter Acked-by: Milo Kim Thanks for catching this. Best regards, Milo