File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
1
// 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
+ */
6
6
#include <linux/ctype.h>
7
7
#include <linux/device.h>
8
8
#include <linux/err.h>
@@ -271,8 +271,10 @@ int param_set_charp(const char *val, const struct kernel_param *kp)
271
271
272
272
maybe_kfree_parameter (* (char * * )kp -> arg );
273
273
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
+ */
276
278
if (slab_is_available ()) {
277
279
* (char * * )kp -> arg = kmalloc_parameter (len + 1 );
278
280
if (!* (char * * )kp -> arg )
@@ -743,8 +745,10 @@ void module_param_sysfs_remove(struct module *mod)
743
745
{
744
746
if (mod -> mkobj .mp ) {
745
747
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
+ */
748
752
free_module_param_attrs (& mod -> mkobj );
749
753
}
750
754
}
You can’t perform that action at this time.
0 commit comments