Skip to contentSkip to conversation

staging: lustre: mgc: no need to compare bool value

PATCH In review Luis de Bethencourt 2 participants 2 messages Jun 23, 2015 – Jul 14, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: lustre: mgc: no need to compare bool value

Inverting the value of eof is a more direct way of passing to the debugging function if eof is false or not.

---
 drivers/staging/lustre/lustre/mgc/mgc_request.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/mgc/mgc_request.c +1 -1
index 7947aec..cd3ce40 100644
@@ -1406,7 +1406,7 @@ again:
 	eof = res->mcr_offset == res->mcr_size;
 
 	CDEBUG(D_INFO, "Latest version %lld, more %d.\n",
-	       res->mcr_offset, eof == false);
+	       res->mcr_offset, !eof);
 
 	ealen = sptlrpc_cli_unwrap_bulk_read(req, req->rq_bulk, 0);
 	if (ealen < 0) {
Signature · 1 line
2.1.4
#1 lore raw
Quoted 2 lines · Luis de Bethencourt

Inverting the value of eof is a more direct way of passing to the debugging function if eof is false or not.

Really? I like the explicit-ness of the code as it is today, it's more obvious what is going on, which is the most important thing.

thanks,

greg k-h