From: Darren Hart Subject: Re: [PATCH] intel-hid: remove duplicated acpi_remove_notify_handler and extra indents Date: Mon, 27 Jun 2016 21:35:43 -0700 Message-ID: <20160628043543.GC3837@f23x64.localdomain> References: <1467083382-31634-1-git-send-email-alex.hung@canonical.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from bombadil.infradead.org ([198.137.202.9]:45250 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752138AbcF1Efo (ORCPT ); Tue, 28 Jun 2016 00:35:44 -0400 Content-Disposition: inline In-Reply-To: <1467083382-31634-1-git-send-email-alex.hung@canonical.com> Sender: platform-driver-x86-owner@vger.kernel.org List-ID: To: Alex Hung Cc: platform-driver-x86@vger.kernel.org On Tue, Jun 28, 2016 at 11:09:42AM +0800, Alex Hung wrote: What triggered this patch? Was an error/panic observed? Is this a theoretical bug or an observed one? This will impact if it goes back to stable. Please provide a complete change log. > Signed-off-by: Alex Hung > --- > drivers/platform/x86/intel-hid.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/platform/x86/intel-hid.c b/drivers/platform/x86/intel-hid.c > index a818db6..ed58742 100644 > --- a/drivers/platform/x86/intel-hid.c > +++ b/drivers/platform/x86/intel-hid.c > @@ -122,8 +122,8 @@ static int intel_hid_input_setup(struct platform_device *device) > return 0; > > err_free_device: > - input_free_device(priv->input_dev); > - return ret; > + input_free_device(priv->input_dev); > + return ret; > } > > static void intel_hid_input_destroy(struct platform_device *device) > @@ -224,7 +224,6 @@ static int intel_hid_remove(struct platform_device *device) > acpi_remove_notify_handler(handle, ACPI_DEVICE_NOTIFY, notify_handler); > intel_hid_input_destroy(device); > intel_hid_set_enable(&device->dev, 0); > - acpi_remove_notify_handler(handle, ACPI_DEVICE_NOTIFY, notify_handler); > > /* > * Even if we failed to shut off the event stream, we can still > -- > 2.7.4 > > -- Darren Hart Intel Open Source Technology Center