* [PATCH] block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
@ 2013-11-06 7:53 Duan Jiong
0 siblings, 0 replies; 9+ messages in thread
From: Duan Jiong @ 2013-11-06 7:53 UTC (permalink / raw)
To: kernel, linux; +Cc: linux-kernel, Duan Jiong
This patch fixes coccinelle error regarding usage of IS_ERR and
PTR_ERR instead of PTR_ERR_OR_ZERO.
Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
---
drivers/block/rbd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 3624368..3b6eea3 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -4680,7 +4680,7 @@ static int rbd_dev_image_id(struct rbd_device *rbd_dev)
image_id = ceph_extract_encoded_string(&p, p + ret,
NULL, GFP_NOIO);
- ret = IS_ERR(image_id) ? PTR_ERR(image_id) : 0;
+ ret = PTR_ERR_OR_ZERO(image_id);
if (!ret)
rbd_dev->image_format = 2;
} else {
--
1.8.3.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH] block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
@ 2013-11-06 7:55 Duan Jiong
2013-11-07 15:29 ` Jens Axboe
0 siblings, 1 reply; 9+ messages in thread
From: Duan Jiong @ 2013-11-06 7:55 UTC (permalink / raw)
To: kernel, linux, a.zummo, airlied, dmitry.torokhov, axboe
Cc: linux-kernel, rtc-linux, dri-devel, linux-tegra, linux-input,
devel, Duan Jiong
This patch fixes coccinelle error regarding usage of IS_ERR and
PTR_ERR instead of PTR_ERR_OR_ZERO.
Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
---
block/blk-timeout.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/blk-timeout.c b/block/blk-timeout.c
index 4e9cfd1..cdf5711 100644
--- a/block/blk-timeout.c
+++ b/block/blk-timeout.c
@@ -32,7 +32,7 @@ static int __init fail_io_timeout_debugfs(void)
struct dentry *dir = fault_create_debugfs_attr("fail_io_timeout",
NULL, &fail_io_timeout);
- return IS_ERR(dir) ? PTR_ERR(dir) : 0;
+ return PTR_ERR_OR_ZERO(dir);
}
late_initcall(fail_io_timeout_debugfs);
--
1.8.3.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH] block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
@ 2013-11-06 7:56 Duan Jiong
0 siblings, 0 replies; 9+ messages in thread
From: Duan Jiong @ 2013-11-06 7:56 UTC (permalink / raw)
To: kernel, linux, a.zummo, airlied, dmitry.torokhov, axboe
Cc: linux-kernel, rtc-linux, dri-devel, linux-tegra, linux-input,
devel, Duan Jiong
This patch fixes coccinelle error regarding usage of IS_ERR and
PTR_ERR instead of PTR_ERR_OR_ZERO.
Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
---
block/blk-timeout.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/blk-timeout.c b/block/blk-timeout.c
index 4e9cfd1..cdf5711 100644
--- a/block/blk-timeout.c
+++ b/block/blk-timeout.c
@@ -32,7 +32,7 @@ static int __init fail_io_timeout_debugfs(void)
struct dentry *dir = fault_create_debugfs_attr("fail_io_timeout",
NULL, &fail_io_timeout);
- return IS_ERR(dir) ? PTR_ERR(dir) : 0;
+ return PTR_ERR_OR_ZERO(dir);
}
late_initcall(fail_io_timeout_debugfs);
--
1.8.3.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH] block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
@ 2013-11-06 7:56 Duan Jiong
2013-11-07 15:29 ` Jens Axboe
0 siblings, 1 reply; 9+ messages in thread
From: Duan Jiong @ 2013-11-06 7:56 UTC (permalink / raw)
To: kernel, linux, a.zummo, airlied, dmitry.torokhov, axboe
Cc: linux-kernel, rtc-linux, dri-devel, linux-tegra, linux-input,
devel, Duan Jiong
This patch fixes coccinelle error regarding usage of IS_ERR and
PTR_ERR instead of PTR_ERR_OR_ZERO.
Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
---
block/ioctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/ioctl.c b/block/ioctl.c
index a31d91d..7d5c3b2 100644
--- a/block/ioctl.c
+++ b/block/ioctl.c
@@ -64,7 +64,7 @@ static int blkpg_ioctl(struct block_device *bdev, struct blkpg_ioctl_arg __user
part = add_partition(disk, partno, start, length,
ADDPART_FLAG_NONE, NULL);
mutex_unlock(&bdev->bd_mutex);
- return IS_ERR(part) ? PTR_ERR(part) : 0;
+ return PTR_ERR_OR_ZERO(part);
case BLKPG_DEL_PARTITION:
part = disk_get_part(disk, partno);
if (!part)
--
1.8.3.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH] block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
@ 2013-11-06 7:57 Duan Jiong
0 siblings, 0 replies; 9+ messages in thread
From: Duan Jiong @ 2013-11-06 7:57 UTC (permalink / raw)
To: kernel, linux, a.zummo, airlied, dmitry.torokhov, axboe
Cc: linux-kernel, rtc-linux, dri-devel, linux-tegra, linux-input,
devel, Duan Jiong
This patch fixes coccinelle error regarding usage of IS_ERR and
PTR_ERR instead of PTR_ERR_OR_ZERO.
Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
---
block/ioctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/ioctl.c b/block/ioctl.c
index a31d91d..7d5c3b2 100644
--- a/block/ioctl.c
+++ b/block/ioctl.c
@@ -64,7 +64,7 @@ static int blkpg_ioctl(struct block_device *bdev, struct blkpg_ioctl_arg __user
part = add_partition(disk, partno, start, length,
ADDPART_FLAG_NONE, NULL);
mutex_unlock(&bdev->bd_mutex);
- return IS_ERR(part) ? PTR_ERR(part) : 0;
+ return PTR_ERR_OR_ZERO(part);
case BLKPG_DEL_PARTITION:
part = disk_get_part(disk, partno);
if (!part)
--
1.8.3.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH] block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
2013-11-06 7:55 [PATCH] block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO Duan Jiong
@ 2013-11-07 15:29 ` Jens Axboe
0 siblings, 0 replies; 9+ messages in thread
From: Jens Axboe @ 2013-11-07 15:29 UTC (permalink / raw)
To: Duan Jiong, kernel, linux, a.zummo, airlied, dmitry.torokhov
Cc: linux-kernel, rtc-linux, dri-devel, linux-tegra, linux-input,
devel
On 11/06/2013 12:55 AM, Duan Jiong wrote:
> This patch fixes coccinelle error regarding usage of IS_ERR and
> PTR_ERR instead of PTR_ERR_OR_ZERO.
Applied, thanks.
--
Jens Axboe
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
2013-11-06 7:56 Duan Jiong
@ 2013-11-07 15:29 ` Jens Axboe
0 siblings, 0 replies; 9+ messages in thread
From: Jens Axboe @ 2013-11-07 15:29 UTC (permalink / raw)
To: Duan Jiong, kernel, linux, a.zummo, airlied, dmitry.torokhov
Cc: linux-kernel, rtc-linux, dri-devel, linux-tegra, linux-input,
devel
On 11/06/2013 12:56 AM, Duan Jiong wrote:
> This patch fixes coccinelle error regarding usage of IS_ERR and
> PTR_ERR instead of PTR_ERR_OR_ZERO.
Applied, thanks.
--
Jens Axboe
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH] block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
@ 2014-04-11 7:58 Duan Jiong
2014-04-11 14:09 ` Jens Axboe
0 siblings, 1 reply; 9+ messages in thread
From: Duan Jiong @ 2014-04-11 7:58 UTC (permalink / raw)
To: axboe; +Cc: linux-kernel, Duan Jiong
This patch fixes coccinelle error regarding usage of IS_ERR and
PTR_ERR instead of PTR_ERR_OR_ZERO.
Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
---
block/blk-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/blk-core.c b/block/blk-core.c
index a0e3096..2cf62fc 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1654,7 +1654,7 @@ static int __init fail_make_request_debugfs(void)
struct dentry *dir = fault_create_debugfs_attr("fail_make_request",
NULL, &fail_make_request);
- return IS_ERR(dir) ? PTR_ERR(dir) : 0;
+ return PTR_ERR_OR_ZERO(dir);
}
late_initcall(fail_make_request_debugfs);
--
1.8.3.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH] block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
2014-04-11 7:58 Duan Jiong
@ 2014-04-11 14:09 ` Jens Axboe
0 siblings, 0 replies; 9+ messages in thread
From: Jens Axboe @ 2014-04-11 14:09 UTC (permalink / raw)
To: Duan Jiong; +Cc: linux-kernel
On 04/11/2014 01:58 AM, Duan Jiong wrote:
> This patch fixes coccinelle error regarding usage of IS_ERR and
> PTR_ERR instead of PTR_ERR_OR_ZERO.
Thanks, applied for 3.16.
--
Jens Axboe
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-04-11 14:09 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-06 7:55 [PATCH] block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO Duan Jiong
2013-11-07 15:29 ` Jens Axboe
-- strict thread matches above, loose matches on Subject: below --
2014-04-11 7:58 Duan Jiong
2014-04-11 14:09 ` Jens Axboe
2013-11-06 7:57 Duan Jiong
2013-11-06 7:56 Duan Jiong
2013-11-07 15:29 ` Jens Axboe
2013-11-06 7:56 Duan Jiong
2013-11-06 7:53 Duan Jiong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox