Message ID | 1590444502-20533-19-git-send-email-jsimmons@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | lustre: merged OpenSFS client patches from April 30 to today | expand |
diff --git a/net/lnet/libcfs/debug.c b/net/lnet/libcfs/debug.c index c0ec184..41a0a5e 100644 --- a/net/lnet/libcfs/debug.c +++ b/net/lnet/libcfs/debug.c @@ -273,7 +273,7 @@ static const char *libcfs_debug_dbg2str(int debug) len = 1; } else { /* space-separated tokens */ for (i = 0; i < 32; i++) { - if (!(mask & (1 << i))) + if ((mask & BIT(i)) == 0) continue; token = fn(i); diff --git a/net/lnet/libcfs/libcfs_string.c b/net/lnet/libcfs/libcfs_string.c index cefe6fee..b042de5 100644 --- a/net/lnet/libcfs/libcfs_string.c +++ b/net/lnet/libcfs/libcfs_string.c @@ -88,9 +88,9 @@ int cfs_str2mask(const char *str, const char *(*bit2str)(int bit), if (debugstr && strlen(debugstr) == len && !strncasecmp(str, debugstr, len)) { if (op == '-') - newmask &= ~(1 << i); + newmask &= ~BIT(i); else - newmask |= (1 << i); + newmask |= BIT(i); found = 1; break; }