[lkml]   [2005]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Do not misuse Coverity please (Was: sound/oss/cs46xx.c: fix a check after use)
    On Mon, 28 Mar 2005, L. A. Walsh wrote:

    > However, in this case, if the author is _certain_ the
    > pointer can never be NULL, than an "ASSERT(card!=NULL);" might
    > be appropriate, where ASSERT is a macro that normally compiles
    > in the check, but could compile to "nothing" for embedded or
    > kernels that aren't being developed in.

    If the kernel dereferences a NULL pointer, it produces an extensive bug
    report. The automatic oops is about the most useful thing to do if a
    pointer is unexpectedly NULL.

    *This .sig left intentionally blank*

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-04-06 13:31    [W:0.019 / U:0.072 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site