Skip to content

Commit

Permalink
(squash) checkpatch: don't initialize statics to 0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
joe-lawrence committed Oct 27, 2021
1 parent 04ef1ab commit 9447e48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/livepatch/test_klp_convert1.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void print_static_strings(void)
}

/* provide a sysfs handle to invoke debug functions */
static int print_debug = 0;
static int print_debug;
static int print_debug_set(const char *val, const struct kernel_param *kp)
{
print_saved_command_line();
Expand Down
2 changes: 1 addition & 1 deletion lib/livepatch/test_klp_convert2.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void print_homonym_string(void)
}

/* provide a sysfs handle to invoke debug functions */
static int print_debug = 0;
static int print_debug;
static int print_debug_set(const char *val, const struct kernel_param *kp)
{
print_saved_command_line();
Expand Down

0 comments on commit 9447e48

Please sign in to comment.