Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1619673
| From | Varsha Rao <rvarsha016@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/2] drivers: char: Replace fail_printk with fail_print. |
| Date | 2017-04-10 09:10 +0200 |
| Message-ID | <tuBCx-5Wv-11@gated-at.bofh.it> (permalink) |
| References | <tuBsR-5Eh-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
As printk is no longer used here, rename the label fail_printk as
fail_print.
Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
---
drivers/char/misc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/char/misc.c b/drivers/char/misc.c
index 5786281..0fed477 100644
--- a/drivers/char/misc.c
+++ b/drivers/char/misc.c
@@ -293,11 +293,11 @@ static int __init misc_init(void)
err = -EIO;
if (register_chrdev(MISC_MAJOR, "misc", &misc_fops))
- goto fail_printk;
+ goto fail_print;
misc_class->devnode = misc_devnode;
return 0;
-fail_printk:
+fail_print:
pr_err("unable to get major %d for misc devices\n", MISC_MAJOR);
class_destroy(misc_class);
fail_remove:
--
2.9.3
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 2/2] drivers: char: Replace fail_printk with fail_print. Varsha Rao <rvarsha016@gmail.com> - 2017-04-10 09:10 +0200 Re: [PATCH 2/2] drivers: char: Replace fail_printk with fail_print. Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-04-10 15:50 +0200
csiph-web