All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] c2port: Remove redundant unlikely()
@ 2010-12-09 15:00 ` Tobias Klauser
  0 siblings, 0 replies; 33+ messages in thread
From: Tobias Klauser @ 2010-12-09 15:00 UTC (permalink / raw)
  To: giometti; +Cc: Dan Carpenter, linux-kernel, kernel-janitors

IS_ERR() already implies unlikely(), so it can be omitted here.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
---
 drivers/misc/c2port/core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/misc/c2port/core.c b/drivers/misc/c2port/core.c
index 19fc7c1..95a82de 100644
--- a/drivers/misc/c2port/core.c
+++ b/drivers/misc/c2port/core.c
@@ -913,7 +913,7 @@ struct c2port_device *c2port_device_register(char *name,
 
 	c2dev->dev = device_create(c2port_class, NULL, 0, c2dev,
 					"c2port%d", id);
-	if (unlikely(IS_ERR(c2dev->dev))) {
+	if (IS_ERR(c2dev->dev)) {
 		ret = PTR_ERR(c2dev->dev);
 		goto error_device_create;
 	}
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2010-12-09 21:08 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-09 15:00 [PATCH] c2port: Remove redundant unlikely() Tobias Klauser
2010-12-09 15:00 ` Tobias Klauser
2010-12-09 15:00 ` Tobias Klauser
2010-12-09 15:00   ` Tobias Klauser
     [not found]   ` <1291906801-1389-2-git-send-email-tklauser-93Khv+1bN0NyDzI6CaY1VQ@public.gmane.org>
2010-12-09 20:03     ` [trivial PATCH 00/15] remove duplicate unlikely from IS_ERR Joe Perches
2010-12-09 20:03   ` Joe Perches
2010-12-09 20:03     ` Joe Perches
2010-12-09 20:03     ` Joe Perches
2010-12-09 20:03     ` Joe Perches
2010-12-09 20:03     ` [PATCH 01/15] drm: Remove " Joe Perches
2010-12-09 20:03       ` Joe Perches
2010-12-09 20:03     ` [PATCH 02/15] stmmac: " Joe Perches
2010-12-09 20:03     ` [PATCH 03/15] rtc: " Joe Perches
2010-12-09 20:06       ` Mike Frysinger
2010-12-09 20:28         ` Joe Perches
2010-12-09 20:03     ` [PATCH 04/15] s390: " Joe Perches
2010-12-09 20:03     ` [PATCH 05/15] osd: " Joe Perches
2010-12-09 20:03     ` [PATCH 06/15] serial: " Joe Perches
2010-12-09 21:08       ` David Brown
2010-12-09 20:04     ` [PATCH 07/15] brcm80211: " Joe Perches
2010-12-09 20:04     ` [PATCH 08/15] gadget: " Joe Perches
2010-12-09 20:04     ` [PATCH 09/15] exofs: " Joe Perches
2010-12-09 20:04     ` [PATCH 10/15] ext2: " Joe Perches
2010-12-09 20:04     ` [PATCH 11/15] ext3: " Joe Perches
2010-12-09 20:04     ` [PATCH 12/15] ext4: " Joe Perches
2010-12-09 20:04     ` [PATCH 13/15] nfs: " Joe Perches
2010-12-09 20:04     ` [PATCH 14/15] mm: " Joe Perches
2010-12-09 20:04       ` Joe Perches
2010-12-09 20:04     ` [PATCH 15/15] ipv6: " Joe Perches
2010-12-09 20:04       ` Joe Perches
2010-12-09 20:32     ` [trivial PATCH 00/15] remove " Joe Perches
2010-12-09 20:32       ` Joe Perches
2010-12-09 20:03   ` Joe Perches

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.