tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Dead code: double return



In article <53F1C72D.9070900%M00nBSD.net@localhost>,
Maxime Villard  <max%M00nBSD.net@localhost> wrote:
>Hi,
>my code scanner reports in several places lines like these:
>
>       return ERROR_CODE/func(XXX);
>       return VALUE;
>
>Of course the latter is never reached; is there a special syntax meaning behind
>this? It's ok if I fix them all? I put here [1] those which seem obvious and
>harmless.
>
>Also, I get several
>
>       panic(XX);
>       return;/break;/continue;
>
>in many places; it's ok if I start removing these return;/break;/continue;?

I'd fix them. But wait for couple more people to chime in.

christos



Home | Main Index | Thread Index | Old Index