From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933230AbbLSVEd (ORCPT ); Sat, 19 Dec 2015 16:04:33 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:42992 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753445AbbLSVEb (ORCPT ); Sat, 19 Dec 2015 16:04:31 -0500 Date: Sun, 20 Dec 2015 00:04:14 +0300 From: Dan Carpenter To: SF Markus Elfring Cc: linux-usb@vger.kernel.org, Greg Kroah-Hartman , LKML , kernel-janitors@vger.kernel.org, Julia Lawall Subject: Re: [PATCH] USB-FHCI: Use a signed return type for fhci_create_ep() Message-ID: <20151219210414.GW5284@mwanda> References: <5675BAE0.2010304@users.sourceforge.net> <20151219202706.GT5284@mwanda> <5675C426.7040602@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5675C426.7040602@users.sourceforge.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 19, 2015 at 09:55:02PM +0100, SF Markus Elfring wrote: > > Just make it an int. > > Thanks for your suggestion. > > Will any more software developers prefer this data type > at some source code places? > Use s32 if the hardware spec specifies that you must. Otherwise prefer ordinary types. > > > The caller also casts it to u32... > > Do you want to get rid of similar casts in affected functions? If you want, that would be great. I just enjoy complaining generally, though. :P regards, dan carpenter