From: Silviu-Mihai Popescu <silviupopescu1990@gmail.com> To: linux-bluetooth@vger.kernel.org Cc: marcel@holtmann.org, gustavo@padovan.org, johan.hedberg@gmail.com, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Silviu-Mihai Popescu <silviupopescu1990@gmail.com> Subject: [PATCH] bluetooth: use PTR_RET instead of IS_ERR + PTR_ERR Date: Tue, 12 Mar 2013 20:13:15 +0200 [thread overview] Message-ID: <1363111995-26866-1-git-send-email-silviupopescu1990@gmail.com> (raw) This uses PTR_RET instead of IS_ERR and PTR_ERR in order to increase readability. Signed-off-by: Silviu-Mihai Popescu <silviupopescu1990@gmail.com> --- net/bluetooth/hci_sysfs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c index 23b4e24..6fb5065 100644 --- a/net/bluetooth/hci_sysfs.c +++ b/net/bluetooth/hci_sysfs.c @@ -590,10 +590,7 @@ 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) -- 1.7.9.5
WARNING: multiple messages have this Message-ID (diff)
From: Silviu-Mihai Popescu <silviupopescu1990-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> To: linux-bluetooth-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: marcel-kz+m5ild9QBg9hUCZPvPmw@public.gmane.org, gustavo-THi1TnShQwVAfugRpC6u6w@public.gmane.org, johan.hedberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Silviu-Mihai Popescu <silviupopescu1990-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Subject: [PATCH] bluetooth: use PTR_RET instead of IS_ERR + PTR_ERR Date: Tue, 12 Mar 2013 20:13:15 +0200 [thread overview] Message-ID: <1363111995-26866-1-git-send-email-silviupopescu1990@gmail.com> (raw) This uses PTR_RET instead of IS_ERR and PTR_ERR in order to increase readability. Signed-off-by: Silviu-Mihai Popescu <silviupopescu1990-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> --- net/bluetooth/hci_sysfs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/net/bluetooth/hci_sysfs.c b/net/bluetooth/hci_sysfs.c index 23b4e24..6fb5065 100644 --- a/net/bluetooth/hci_sysfs.c +++ b/net/bluetooth/hci_sysfs.c @@ -590,10 +590,7 @@ 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) -- 1.7.9.5
next reply other threads:[~2013-03-12 18:13 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-03-12 18:13 Silviu-Mihai Popescu [this message] 2013-03-12 18:13 ` [PATCH] bluetooth: use PTR_RET instead of IS_ERR + PTR_ERR Silviu-Mihai Popescu 2013-03-13 9:31 ` David Miller 2013-03-18 18:05 ` Silviu Popescu 2013-03-18 18:05 ` Silviu Popescu 2013-03-18 18:08 ` David Miller 2013-03-18 18:08 ` David Miller 2013-03-18 18:13 ` Joe Perches 2013-03-18 18:13 ` Joe Perches 2013-03-18 18:13 ` Silviu Popescu 2013-03-18 18:19 ` Gustavo Padovan 2013-03-18 18:19 ` Gustavo Padovan
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1363111995-26866-1-git-send-email-silviupopescu1990@gmail.com \ --to=silviupopescu1990@gmail.com \ --cc=davem@davemloft.net \ --cc=gustavo@padovan.org \ --cc=johan.hedberg@gmail.com \ --cc=linux-bluetooth@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=marcel@holtmann.org \ --cc=netdev@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.