LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 1/1 linux-next] udf: remove bool assignment to 0/1
@ 2015-02-04 17:26 Fabian Frederick
2015-02-05 15:37 ` Jan Kara
0 siblings, 1 reply; 2+ messages in thread
From: Fabian Frederick @ 2015-02-04 17:26 UTC (permalink / raw)
To: linux-kernel; +Cc: Jan Kara, Fabian Frederick
Fix the following coccinelle warnings:
fs/udf/inode.c:753:2-13: WARNING: Assignment of bool to 0/1
fs/udf/inode.c:795:2-13: WARNING: Assignment of bool to 0/1
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
fs/udf/inode.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/udf/inode.c b/fs/udf/inode.c
index 7b72b7d..a445d59 100644
--- a/fs/udf/inode.c
+++ b/fs/udf/inode.c
@@ -750,7 +750,7 @@ static sector_t inode_getblk(struct inode *inode, sector_t block,
/* Are we beyond EOF? */
if (etype == -1) {
int ret;
- isBeyondEOF = 1;
+ isBeyondEOF = true;
if (count) {
if (c)
laarr[0] = laarr[1];
@@ -792,7 +792,7 @@ static sector_t inode_getblk(struct inode *inode, sector_t block,
endnum = c + 1;
lastblock = 1;
} else {
- isBeyondEOF = 0;
+ isBeyondEOF = false;
endnum = startnum = ((count > 2) ? 2 : count);
/* if the current extent is in position 0,
--
1.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1 linux-next] udf: remove bool assignment to 0/1
2015-02-04 17:26 [PATCH 1/1 linux-next] udf: remove bool assignment to 0/1 Fabian Frederick
@ 2015-02-05 15:37 ` Jan Kara
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kara @ 2015-02-05 15:37 UTC (permalink / raw)
To: Fabian Frederick; +Cc: linux-kernel, Jan Kara
On Wed 04-02-15 18:26:27, Fabian Frederick wrote:
> Fix the following coccinelle warnings:
>
> fs/udf/inode.c:753:2-13: WARNING: Assignment of bool to 0/1
> fs/udf/inode.c:795:2-13: WARNING: Assignment of bool to 0/1
Thanks for the fix. Patch merged.
Honza
>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
> ---
> fs/udf/inode.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/fs/udf/inode.c b/fs/udf/inode.c
> index 7b72b7d..a445d59 100644
> --- a/fs/udf/inode.c
> +++ b/fs/udf/inode.c
> @@ -750,7 +750,7 @@ static sector_t inode_getblk(struct inode *inode, sector_t block,
> /* Are we beyond EOF? */
> if (etype == -1) {
> int ret;
> - isBeyondEOF = 1;
> + isBeyondEOF = true;
> if (count) {
> if (c)
> laarr[0] = laarr[1];
> @@ -792,7 +792,7 @@ static sector_t inode_getblk(struct inode *inode, sector_t block,
> endnum = c + 1;
> lastblock = 1;
> } else {
> - isBeyondEOF = 0;
> + isBeyondEOF = false;
> endnum = startnum = ((count > 2) ? 2 : count);
>
> /* if the current extent is in position 0,
> --
> 1.9.3
>
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-05 15:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-04 17:26 [PATCH 1/1 linux-next] udf: remove bool assignment to 0/1 Fabian Frederick
2015-02-05 15:37 ` Jan Kara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).