aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/pvpanic/pvpanic.c
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2021-08-29 12:43:54 +0000
committerGreg Kroah-Hartman <[email protected]>2021-09-14 09:07:13 +0000
commit84b0f12a953c4feff9994b1c4583ed18b441f482 (patch)
treeeb7b34f1478e692bcbf8340b661c9919407be70c /drivers/misc/pvpanic/pvpanic.c
parentpvpanic: Fix typos in the comments (diff)
downloadkernel-84b0f12a953c4feff9994b1c4583ed18b441f482.tar.gz
kernel-84b0f12a953c4feff9994b1c4583ed18b441f482.zip
pvpanic: Indentation fixes here and there
1) replace double spaces with single; 2) relax line width limitation a bit. Reviewed-by: Mihai Carabas <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/misc/pvpanic/pvpanic.c')
-rw-r--r--drivers/misc/pvpanic/pvpanic.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/misc/pvpanic/pvpanic.c b/drivers/misc/pvpanic/pvpanic.c
index 6ffc8c2e5b04..4b8f1c7d726d 100644
--- a/drivers/misc/pvpanic/pvpanic.c
+++ b/drivers/misc/pvpanic/pvpanic.c
@@ -23,7 +23,7 @@
#include "pvpanic.h"
MODULE_AUTHOR("Mihai Carabas <[email protected]>");
-MODULE_DESCRIPTION("pvpanic device driver ");
+MODULE_DESCRIPTION("pvpanic device driver");
MODULE_LICENSE("GPL");
static struct list_head pvpanic_list;
@@ -43,8 +43,7 @@ pvpanic_send_event(unsigned int event)
}
static int
-pvpanic_panic_notify(struct notifier_block *nb, unsigned long code,
- void *unused)
+pvpanic_panic_notify(struct notifier_block *nb, unsigned long code, void *unused)
{
unsigned int event = PVPANIC_PANICKED;
@@ -96,8 +95,7 @@ static int pvpanic_init(void)
INIT_LIST_HEAD(&pvpanic_list);
spin_lock_init(&pvpanic_lock);
- atomic_notifier_chain_register(&panic_notifier_list,
- &pvpanic_panic_nb);
+ atomic_notifier_chain_register(&panic_notifier_list, &pvpanic_panic_nb);
return 0;
}
@@ -105,8 +103,7 @@ module_init(pvpanic_init);
static void pvpanic_exit(void)
{
- atomic_notifier_chain_unregister(&panic_notifier_list,
- &pvpanic_panic_nb);
+ atomic_notifier_chain_unregister(&panic_notifier_list, &pvpanic_panic_nb);
}
module_exit(pvpanic_exit);