Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753796AbbF3Aem (ORCPT ); Mon, 29 Jun 2015 20:34:42 -0400 Received: from mail-vn0-f44.google.com ([209.85.216.44]:36475 "EHLO mail-vn0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752078AbbF3AeW (ORCPT ); Mon, 29 Jun 2015 20:34:22 -0400 MIME-Version: 1.0 In-Reply-To: <1435591877-18214-3-git-send-email-vaibhav.hiremath@linaro.org> References: <1435591877-18214-1-git-send-email-vaibhav.hiremath@linaro.org> <1435591877-18214-3-git-send-email-vaibhav.hiremath@linaro.org> Date: Tue, 30 Jun 2015 09:34:21 +0900 X-Google-Sender-Auth: HvaI_FoujjRR0CBBlBPK8XcajAs Message-ID: Subject: Re: [PATCH-V5 2/4] mfd: 88pm800: Remove unnecessary protection around pdata From: Krzysztof Kozlowski To: Vaibhav Hiremath Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, sameo@linux.intel.com, yizhang@marvell.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, lee.jones@linaro.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 772 Lines: 21 2015-06-30 0:31 GMT+09:00 Vaibhav Hiremath : > With addition of proper checks in place in pm800_probe function, > which makes sure that pdata would never become NULL. > So remove all unnecessary protection around pdata in whole > driver code. > > Signed-off-by: Vaibhav Hiremath > --- > drivers/mfd/88pm800.c | 14 ++++++-------- > 1 file changed, 6 insertions(+), 8 deletions(-) > Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/