[PATCH] rtc: remove superfluous call to call to cdev_del()
authorRolf Eike Beer <eike-kernel@sf-tec.de>
Sun, 1 Oct 2006 06:27:48 +0000 (23:27 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 1 Oct 2006 07:39:22 +0000 (00:39 -0700)
commit328a338f6f9943a0a77292315a25628b22f79fed
treef38a4b110b8d728a5be847e567eafb961b586e88
parentcc088d10d02978641c7a2eecd18caf1e01e597b3
[PATCH] rtc: remove superfluous call to call to cdev_del()

If cdev_add() fails there is no good reason to call cdev_del().

Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Cc: Alessandro Zummo <alessandro.zummo@towertech.it>
Cc: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/rtc/rtc-dev.c