Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752529AbcDZOtv (ORCPT ); Tue, 26 Apr 2016 10:49:51 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:59111 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751950AbcDZOtu (ORCPT ); Tue, 26 Apr 2016 10:49:50 -0400 Date: Tue, 26 Apr 2016 10:49:47 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Jiancheng Xue cc: linux-usb@vger.kernel.org, , , , , , , , , , , Subject: Re: [PATCH] usb: ehci-platform: add reset controller number in struct ehci_platform_priv In-Reply-To: <571EC16C.2050704@hisilicon.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 457 Lines: 20 On Tue, 26 Apr 2016, Jiancheng Xue wrote: > > If an error occurs here... > > > Sorry. It's really a problem. I'll modify it in v2 like below: > > err = reset_control_deassert(priv->rsts[rst]); > if(err) { > reset_control_put(priv->rsts[rst]); > goto err_reset; > } Yes, that would be good. (Except for the missing ' ' between "if" and "(".) > Is it OK except this bug? If so, I'll send out v2 patch. Everything else looked okay to me. Alan Stern