Re: [2.6 patch] sound/oss/rme96xx.c: fix two check after use

From: Christoph Hellwig (hch_at_infradead.org)
Date: 04/13/05

  • Next message: Russell King: "Re: [PATCH 2.6.12-rc2-mm3] serial: update NEC VR4100 series serial support"
    Date:	Wed, 13 Apr 2005 15:58:46 +0100
    To: "Bodo Eggert <harvested.in.lkml@posting.7eggert.dyndns.org>" <7eggert@gmx.de>
    
    

    On Wed, Apr 13, 2005 at 12:40:38PM +0200, Bodo Eggert <harvested.in.lkml@posting.7eggert.dyndns.org> wrote:
    > If there are checks, they should be there for a purpose,

    emphasis here is on _should_

    > and any sane reader will asume these checks to be nescensary.

    That's a bad assumptions when you're deadling with drivers or software of
    similar quality.

    > If they are dead code, you
    > can say that, but please don't flame Adrian for fixing obviously buggy code
    > in a way that is sane and at least more correct than the original without
    > using several days of his lifetime to analyze the whole driver. Instead, you
    > could provide the correct fix.

    The correct fix is to remove the check. And no, we don't have a rule that
    someone must provide something better when trying to critize it.
    -
    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/


  • Next message: Russell King: "Re: [PATCH 2.6.12-rc2-mm3] serial: update NEC VR4100 series serial support"

    Relevant Pages

    • Re: 2.6.10-rc2 on VAIO laptop and PowerMac 8500/G3
      ... fbdev layer broke some of those old drivers. ... VT mode data structure, the driver is now sort-of supposed to re-invent ... but I suppose I'll have to fix controlfb (and platinumfb ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • RE: Driver Model 2 Proposal - Linux Kernel Performance v Usability
      ... I agree that it is an extra interface ... > Windows has many faults but drivers are often compatible across ... common users in the Windows world can't handle installing a driver any better than they would be able to in Linux. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [Bug 1412] Copy from USB1 CF/SM reader stalls, no actual content is read (only directory structu
      ... For drivers like this that aren't performance critical and ... > depends on the capabilities of the USB host controller that our device ... and if the result is 0 then calling kmap() ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Linux 2.6.15-rc5: off-line for a week
      ... Gene, in the meantime, you can fix your situation without changing any ... Linus has already applied the correct fix from Mauro ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: HighPoint 374
      ... > I'm using two seagates, one Samsung and one Maxtor, ... > drivers, pretty much everything that does not relate directly to the IDE ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)