Skip to content

Commit

Permalink
Remove redundant initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Jan 31, 2018
1 parent c516007 commit c3d37b1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions keysniffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static const char *us_keymap[][2] = {
};

static size_t buf_pos;
static char keys_buf[BUF_LEN] = {0};
static char keys_buf[BUF_LEN];

const struct file_operations keys_fops = {
.owner = THIS_MODULE,
Expand Down Expand Up @@ -211,8 +211,6 @@ int keysniffer_cb(struct notifier_block *nblock,
*/
static int __init keysniffer_init(void)
{
buf_pos = 0;

if (codes < 0 || codes > 2)
return -EINVAL;

Expand Down

0 comments on commit c3d37b1

Please sign in to comment.