linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
@ 2013-11-06  7:55 Duan Jiong
       [not found] ` <1383724544-15662-1-git-send-email-duanj.fnst-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
  0 siblings, 1 reply; 6+ 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] 6+ 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; 6+ 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] 6+ 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; 6+ 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] 6+ 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; 6+ 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] 6+ messages in thread

* Re: [PATCH] block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
       [not found] ` <1383724544-15662-1-git-send-email-duanj.fnst-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2013-11-07 15:29   ` Jens Axboe
  0 siblings, 0 replies; 6+ messages in thread
From: Jens Axboe @ 2013-11-07 15:29 UTC (permalink / raw)
  To: Duan Jiong, kernel-bIcnvbaLZ9MEGnE8C9+IrQ,
	linux-lFZ/pmaqli7XmaaqVzeoHQ, a.zummo-BfzFCNDTiLLj+vYz1yj4TQ,
	airlied-cv59FeDIM0c, dmitry.torokhov-Re5JQEeQqe8AvxtiuMwx3w
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	rtc-linux-/JYPxA39Uh5TLH3MbocFFw,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA,
	linux-input-u79uwXL29TY76Z2rM5mHXA,
	devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b

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] 6+ messages in thread

* Re: [PATCH] block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
  2013-11-06  7:56 [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; 6+ 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] 6+ messages in thread

end of thread, other threads:[~2013-11-07 15:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-06  7:56 [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 --
2013-11-06  7:57 Duan Jiong
2013-11-06  7:56 Duan Jiong
2013-11-06  7:55 Duan Jiong
     [not found] ` <1383724544-15662-1-git-send-email-duanj.fnst-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2013-11-07 15:29   ` Jens Axboe

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).