Skip to content

Commit b5e3f86

Browse files
andy-shevkees
authored andcommitted
params: Fix multi-line comment style
The multi-line comment style in the file is rather arbitrary. Make it follow the standard one. Reviewed-by: Luis Chamberlain <[email protected]> Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
1 parent a05f096 commit b5e3f86

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

kernel/params.c

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
2-
/* Helpers for initial module or kernel cmdline parsing
3-
Copyright (C) 2001 Rusty Russell.
4-
5-
*/
2+
/*
3+
* Helpers for initial module or kernel cmdline parsing
4+
* Copyright (C) 2001 Rusty Russell.
5+
*/
66
#include <linux/ctype.h>
77
#include <linux/device.h>
88
#include <linux/err.h>
@@ -271,8 +271,10 @@ int param_set_charp(const char *val, const struct kernel_param *kp)
271271

272272
maybe_kfree_parameter(*(char **)kp->arg);
273273

274-
/* This is a hack. We can't kmalloc in early boot, and we
275-
* don't need to; this mangled commandline is preserved. */
274+
/*
275+
* This is a hack. We can't kmalloc() in early boot, and we
276+
* don't need to; this mangled commandline is preserved.
277+
*/
276278
if (slab_is_available()) {
277279
*(char **)kp->arg = kmalloc_parameter(len + 1);
278280
if (!*(char **)kp->arg)
@@ -743,8 +745,10 @@ void module_param_sysfs_remove(struct module *mod)
743745
{
744746
if (mod->mkobj.mp) {
745747
sysfs_remove_group(&mod->mkobj.kobj, &mod->mkobj.mp->grp);
746-
/* We are positive that no one is using any param
747-
* attrs at this point. Deallocate immediately. */
748+
/*
749+
* We are positive that no one is using any param
750+
* attrs at this point. Deallocate immediately.
751+
*/
748752
free_module_param_attrs(&mod->mkobj);
749753
}
750754
}

0 commit comments

Comments
 (0)