From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Date: Fri, 28 Oct 2011 06:45:25 +0000 Subject: Re: [patch] [ALSA] hwdep: silence integer overflow warning Message-Id: <20111028064525.GA14707@longonot.mountain> List-Id: References: <20111020060910.GA6101@elgon.mountain> <4E9FD02B.6030307@bfs.de> In-Reply-To: <4E9FD02B.6030307@bfs.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: walter harms Cc: Takashi Iwai , Paul Gortmaker , alsa-devel@alsa-project.org, kernel-janitors@vger.kernel.org On Thu, Oct 20, 2011 at 09:39:23AM +0200, walter harms wrote: > I am not sure how SNDRV_MINOR_HWDEPS is used further Either device = SNDRV_MINOR_HWDEPS or device = SNDRV_MINOR_HWDEPS + 1 are fine (equivalent) but it's a fair point. Your version is nicer. I'll redo the patch. regards, dan carpenter