staging: pi433: add missing call to cdev_del()
authorMichael Straube <straube.linux@gmail.com>
Mon, 26 Nov 2018 18:18:20 +0000 (19:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Dec 2018 08:39:45 +0000 (09:39 +0100)
commite086f61479d1ae4dd78fd882228311ce31e73e91
treeb6c8bdea6b8d0d86045f5ae288e16ca8dd9eb460
parentd4d6b086df62b37e5712d006bc87bc56efbbae67
staging: pi433: add missing call to cdev_del()

If cdev_add() fails, cdev_del() should be called.
Add the missing cdev_del() call as pointed out by
Dan Carpenter.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/pi433/pi433_if.c