Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752542AbaAFDUp (ORCPT ); Sun, 5 Jan 2014 22:20:45 -0500 Received: from rtits2.realtek.com ([60.250.210.242]:33957 "EHLO rtits2.realtek.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751460AbaAFDUn (ORCPT ); Sun, 5 Jan 2014 22:20:43 -0500 X-SpamFilter-By: BOX Solutions SpamTrap 5.39 with qID s063KaU2005501, This message is accepted by code: ctloc85258 From: hayeswang To: "'David Miller'" CC: , , References: <1388719316-5702-1-git-send-email-hayeswang@realtek.com> <20140103.203759.2168117129392277198.davem@davemloft.net> Subject: RE: [PATCH net-next] r8152: fix the wrong return value Date: Mon, 6 Jan 2014 11:20:43 +0800 Message-ID: <85A9FCBA3D724C2FA135DD70BCF1FF4F@realtek.com.tw> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac8I7Z2fop0Io8tOSw6SNMo0FtX/WgBoIY8g In-Reply-To: <20140103.203759.2168117129392277198.davem@davemloft.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Originating-IP: [172.21.71.143] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Miller [mailto:davem@davemloft.net] > Sent: Saturday, January 04, 2014 9:38 AM > To: Hayeswang > Cc: netdev@vger.kernel.org; linux-kernel@vger.kernel.org; > linux-usb@vger.kernel.org > Subject: Re: [PATCH net-next] r8152: fix the wrong return value > > From: Hayes Wang > Date: Fri, 3 Jan 2014 11:21:56 +0800 > > > The return value should be the boolean value, not the error code. > > > > Signed-off-by: Hayes Wang > > Spotted-by: Dan Carpenter > > Applied, but I agree with others that it's more canonical to have the > function return either an error code, or zero for success, rather than > a boolean. Thanks. I would find if there is suitable error code. Best Regards, Hayes -- 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/