Re: ugly warnings with likely/unlikely

Oliver Neukum (520047054719-0001@t-online.de)
Sun, 13 Jan 2002 16:06:46 +0100


On Sunday 13 January 2002 16:07, Alan Cox wrote:
> > if (likely(stru->pointer))
> >
> > results in an ugly warning about using pointer as int.
> > Is there something that could be done against that ?
>
> if (likely(stru->pointer == NULL))
>
> Perhaps ?

That works. But it's so much work to type it.

Regards
Oliver

-
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/