Re: error in module.c

Vladimir Volovich (vvv@vvv.vsu.ru)
04 May 1998 18:27:22 +0400


"JK" == Jaroslav Kysela writes:

JK> - (mp->flags == MOD_RUNNING) && (mp->nsyms > 0)) {
JK> + ((mp->flags & (MOD_RUNNING|MOD_DELETED)) == MOD_RUNNING) &&
JK> + (mp->nsyms > 0)) {

IMHO, it would be more efficient to use test_bit(0,mp->flags) instead
of (mp->flags & (MOD_RUNNING)) == MOD_RUNNING)

Best regards, -- Vladimir.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu