Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752475AbcLGMAj (ORCPT ); Wed, 7 Dec 2016 07:00:39 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:44436 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752117AbcLGMAh (ORCPT ); Wed, 7 Dec 2016 07:00:37 -0500 DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org E7C376155C Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Pan Bian Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] net: wireless: intersil: fix improper return value References: <1480760572-4444-1-git-send-email-bianpan2016@163.com> Date: Wed, 07 Dec 2016 14:00:31 +0200 In-Reply-To: <1480760572-4444-1-git-send-email-bianpan2016@163.com> (Pan Bian's message of "Sat, 3 Dec 2016 18:22:52 +0800") Message-ID: <8760mwdk4g.fsf@kamboji.qca.qualcomm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) 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: 667 Lines: 20 Pan Bian writes: > Function orinoco_ioctl_commit() returns 0 (indicates success) when the > call to orinoco_lock() fails. Thus, the return value is inconsistent with > the execution status. It may be better to return "-EBUSY" when the call > to orinoco_lock() fails. > > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188671 > > Signed-off-by: Pan Bian > --- > drivers/net/wireless/intersil/orinoco/wext.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Please use prefix "orinoco:", more info: https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches#subject_name -- Kalle Valo