From: Coly Li <coly.li@suse.de>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH] ocfs2: one more warning fix in ocfs2_file_aio_write()
Date: Fri, 26 Mar 2010 05:20:08 +0800 [thread overview]
Message-ID: <4BABD388.9020107@suse.de> (raw)
In-Reply-To: <20100325204515.GB9984@mail.oracle.com>
On 2010?03?26? 04:45, Joel Becker Wrote:
> On Fri, Mar 26, 2010 at 04:21:39AM +0800, Coly Li wrote:
>> This patch fixes another compiling warning in ocfs2_file_aio_write() like this,
>> fs/ocfs2/file.c: In function ?ocfs2_file_aio_write?:
>> fs/ocfs2/file.c:2026: warning: suggest parentheses around ?&&? within ?||?
>>
>> Signed-off-by: Coly Li <coly.li@suse.de>
>> ---
>> fs/ocfs2/file.c | 4 ++--
>> 1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
>> index 17947dc..c4638fd 100644
>> --- a/fs/ocfs2/file.c
>> +++ b/fs/ocfs2/file.c
>> @@ -2021,8 +2021,8 @@ out_dio:
>> if (ret < 0)
>> written = ret;
>>
>> - if (!ret && (old_size != i_size_read(inode) ||
>> - old_clusters != OCFS2_I(inode)->ip_clusters ||
>> + if ((!ret) && ((old_size != i_size_read(inode)) ||
>
> You don't need to wrap the !ret. It's unary.
>
Just posted another update, and Cc to you.
Thanks for the review :-)
--
Coly Li
SuSE Labs
prev parent reply other threads:[~2010-03-25 21:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-25 20:21 [Ocfs2-devel] [PATCH] ocfs2: one more warning fix in ocfs2_file_aio_write() Coly Li
2010-03-25 20:45 ` Joel Becker
2010-03-25 21:20 ` Coly Li [this message]
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=4BABD388.9020107@suse.de \
--to=coly.li@suse.de \
--cc=ocfs2-devel@oss.oracle.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.