Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 5 Jan 2002 06:05:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 5 Jan 2002 06:04:53 -0500 Received: from [194.162.148.192] ([194.162.148.192]:45812 "EHLO localhost.localdomain") by vger.kernel.org with ESMTP id ; Sat, 5 Jan 2002 06:04:37 -0500 Date: Sat, 5 Jan 2002 12:04:05 +0100 (CET) From: Kai Germaschewski X-X-Sender: To: "Adam J. Richter" cc: , , , Subject: Re: Patch: linux-2.5.2-pre8/drivers/isdn/sc/commands.c bug exposed by kdev_t changes In-Reply-To: <20020104235426.A17712@baldur.yggdrasil.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 4 Jan 2002, Adam J. Richter wrote: > The kdev_t changes have exposed an amusing bug in > linux-2.5.2-pre8/drivers/isdn/sc/command.c. A routine that > was intended to return the error "-ENODEV" was actually > returning "-NODEV" (prevously zero, now a compilation error). > Here is the fix. Looks good. Attached again for easier applying. --Kai --- linux-2.5.2-pre8/drivers/isdn/sc/command.c Sun Sep 30 12:26:06 2001 +++ linux/drivers/isdn/sc/command.c Fri Jan 4 23:47:36 2002 @@ -95,7 +95,7 @@ if(adapter[i]->driverId == driver) return i; } - return -NODEV; + return -ENODEV; } /* - 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/