Skip to content

Commit

Permalink
Bluetooth: Use PTR_RET function
Browse files Browse the repository at this point in the history
Used PTR_RET function instead of IS_ERR and PTR_ERR.
Patch found using coccinelle.

Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
  • Loading branch information
Alexandru Gheorghiu authored and Gustavo Padovan committed Mar 18, 2013
1 parent 77189df commit 12033ca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions net/bluetooth/hci_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,10 +590,8 @@ int __init bt_sysfs_init(void)
bt_debugfs = debugfs_create_dir("bluetooth", NULL);

bt_class = class_create(THIS_MODULE, "bluetooth");
if (IS_ERR(bt_class))
return PTR_ERR(bt_class);

return 0;
return PTR_RET(bt_class);
}

void bt_sysfs_cleanup(void)
Expand Down

0 comments on commit 12033ca

Please sign in to comment.