Skip to content

Commit dd6ef9a

Browse files
committed
(squash) checkpatch: don't initialize statics to 0
Fix the following checkpatch errors: ERROR: do not initialise statics to 0 torvalds#89: FILE: lib/livepatch/test_klp_convert1.c:36: +static int print_debug = 0; ERROR: do not initialise statics to 0 torvalds#214: FILE: lib/livepatch/test_klp_convert2.c:36: +static int print_debug = 0; Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
1 parent ad276bb commit dd6ef9a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/livepatch/test_klp_convert1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void print_static_strings(void)
3232
}
3333

3434
/* provide a sysfs handle to invoke debug functions */
35-
static int print_debug = 0;
35+
static int print_debug;
3636
static int print_debug_set(const char *val, const struct kernel_param *kp)
3737
{
3838
print_saved_command_line();

lib/livepatch/test_klp_convert2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void print_homonym_string(void)
2626
}
2727

2828
/* provide a sysfs handle to invoke debug functions */
29-
static int print_debug = 0;
29+
static int print_debug;
3030
static int print_debug_set(const char *val, const struct kernel_param *kp)
3131
{
3232
print_saved_command_line();

0 commit comments

Comments
 (0)