From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751623AbbCJBWm (ORCPT ); Mon, 9 Mar 2015 21:22:42 -0400 Received: from mail-pd0-f178.google.com ([209.85.192.178]:45896 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751105AbbCJBWk (ORCPT ); Mon, 9 Mar 2015 21:22:40 -0400 Message-ID: <1425950553.16452.1.camel@phoenix> Subject: [PATCH] phy: twl4030-usb: Remove redundant assignment for twl->linkstat From: Axel Lin To: Kishon Vijay Abraham I Cc: Felipe Balbi , "linux-kernel@vger.kernel.org" , linux-usb@vger.kernel.org Date: Tue, 10 Mar 2015 09:22:33 +0800 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It's pointless to set twl->linkstat twice. Signed-off-by: Axel Lin --- Resend with linux-usb in Cc. drivers/phy/phy-twl4030-usb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/phy/phy-twl4030-usb.c b/drivers/phy/phy-twl4030-usb.c index 8e87f54..bc42d6a 100644 --- a/drivers/phy/phy-twl4030-usb.c +++ b/drivers/phy/phy-twl4030-usb.c @@ -666,7 +666,6 @@ static int twl4030_usb_probe(struct platform_device *pdev) twl->dev = &pdev->dev; twl->irq = platform_get_irq(pdev, 0); twl->vbus_supplied = false; - twl->linkstat = -EINVAL; twl->linkstat = OMAP_MUSB_UNKNOWN; twl->phy.dev = twl->dev; -- 1.9.1