summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/generic.c
diff options
context:
space:
mode:
authorDevendra Naga <develkernel412222@gmail.com>2012-07-15 18:52:02 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-17 10:27:38 -0700
commit8397c76a2c209997c7119bede2f26e51d8c786bc (patch)
tree25193b6ceac253bae795d86d55a331775674d7d7 /drivers/usb/serial/generic.c
parent483136ea0e2b23f2aebf57e1a36a06dec4223a92 (diff)
downloadop-kernel-dev-8397c76a2c209997c7119bede2f26e51d8c786bc.zip
op-kernel-dev-8397c76a2c209997c7119bede2f26e51d8c786bc.tar.gz
powerpc/BSR: cleanup the error path of bsr_init
class_create if succeeded returns a pointer to the struct class, and if it fails, it returns a value enclosed by the pointer, which can be read by using PTR_ERR. Handle the error and return it. result is for error checking of the alloc_chrdev_region, instead ret can be used, and also if the alloc_chrdev_region fail, we are still returning -ENODEV, use ret and the error path will take care of returning of the ret. Signed-off-by: Devendra Naga <develkernel412222@gmail.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/generic.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud