Skip to content

Commit

Permalink
random: Fix whitespace pre random-bytes work
Browse files Browse the repository at this point in the history
There are a couple of whitespace issues around the function
get_random_bytes_arch().  In preparation for patching this function
let's clean them up.

Acked-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
  • Loading branch information
tcharding authored and tytso committed Jul 18, 2018
1 parent 81e69df commit 8ddd6ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/char/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -1737,7 +1737,7 @@ void get_random_bytes_arch(void *buf, int nbytes)

if (!arch_get_random_long(&v))
break;

memcpy(p, &v, chunk);
p += chunk;
nbytes -= chunk;
Expand All @@ -1748,7 +1748,6 @@ void get_random_bytes_arch(void *buf, int nbytes)
}
EXPORT_SYMBOL(get_random_bytes_arch);


/*
* init_std_data - initialize pool with system data
*
Expand Down

0 comments on commit 8ddd6ef

Please sign in to comment.