mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Luis de Bethencourt <luis@debethencourt.com>
To: linux-kernel@vger.kernel.org
Cc: "Oleg Drokin" <oleg.drokin@intel.com>,
	"Andreas Dilger" <andreas.dilger@intel.com>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"John L. Hammond" <john.hammond@intel.com>,
	"Ryan Haasken" <haasken@cray.com>,
	"Heena Sirwani" <heenasirwani@gmail.com>,
	"Hatice ERTÜRK" <haticeerturk27@gmail.com>,
	"Joe Perches" <joe@perches.com>,
	"Supriya Karanth" <iskaranth@gmail.com>,
	"Julia Lawall" <Julia.Lawall@lip6.fr>,
	"Bobi Jam" <bobijam.xu@intel.com>,
	HPDD-discuss@ml01.01.org, devel@driverdev.osuosl.org
Subject: [PATCH] staging: lustre: mgc: no need to compare bool value
Date: Tue, 23 Jun 2015 16:26:11 +0200	[thread overview]
Message-ID: <20150623142611.GA5816@goodgumbo.baconseed.org> (raw)

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

Signed-off-by: Luis de Bethencourt <luis@debethencourt.com>
---
 drivers/staging/lustre/lustre/mgc/mgc_request.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lustre/mgc/mgc_request.c b/drivers/staging/lustre/lustre/mgc/mgc_request.c
index 7947aec..cd3ce40 100644
--- a/drivers/staging/lustre/lustre/mgc/mgc_request.c
+++ b/drivers/staging/lustre/lustre/mgc/mgc_request.c
@@ -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) {
-- 
2.1.4


             reply	other threads:[~2015-06-23 14:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-23 14:26 Luis de Bethencourt [this message]
2015-07-14  2:38 ` Greg Kroah-Hartman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150623142611.GA5816@goodgumbo.baconseed.org \
    --to=luis@debethencourt.com \
    --cc=HPDD-discuss@ml01.01.org \
    --cc=Julia.Lawall@lip6.fr \
    --cc=andreas.dilger@intel.com \
    --cc=bobijam.xu@intel.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=haasken@cray.com \
    --cc=haticeerturk27@gmail.com \
    --cc=heenasirwani@gmail.com \
    --cc=iskaranth@gmail.com \
    --cc=joe@perches.com \
    --cc=john.hammond@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oleg.drokin@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®