Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934163AbbFWOUS (ORCPT ); Tue, 23 Jun 2015 10:20:18 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:38183 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932247AbbFWOUM (ORCPT ); Tue, 23 Jun 2015 10:20:12 -0400 Date: Tue, 23 Jun 2015 16:26:11 +0200 From: Luis de Bethencourt To: linux-kernel@vger.kernel.org Cc: Oleg Drokin , Andreas Dilger , Greg Kroah-Hartman , "John L. Hammond" , Ryan Haasken , Heena Sirwani , Hatice =?iso-8859-1?Q?ERT=DCRK?= , Joe Perches , Supriya Karanth , Julia Lawall , Bobi Jam , HPDD-discuss@ml01.01.org, devel@driverdev.osuosl.org Subject: [PATCH] staging: lustre: mgc: no need to compare bool value Message-ID: <20150623142611.GA5816@goodgumbo.baconseed.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1065 Lines: 29 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 --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/