Skip to contentSkip to conversation

random: remove the unused parameter to avoid the compile warning.

PATCH New Xiubo Li 1 participant 1 message Aug 6, 2014 Random number driver

lore
Share & tools
lore

Xiubo Li

author
#0 lore raw

PATCH 1/1 random: remove the unused parameter to avoid the compile warning.

drivers/char/random.c: In function SYSC_getrandom:
drivers/char/random.c:1526:6: warning: unused variable r [-Wunused-variable]

  int r;
      ^
---
 drivers/char/random.c | 2 --
 1 file changed, 2 deletions(-)
drivers/char/random.c +0 -2
index 37d8970..c18d41d 100644
@@ -1523,8 +1523,6 @@ const struct file_operations urandom_fops = {
 SYSCALL_DEFINE3(getrandom, char __user *, buf, size_t, count,
 		unsigned int, flags)
 {
-	int r;
-
 	if (flags & ~(GRND_NONBLOCK|GRND_RANDOM))
 		return -EINVAL;
 
Signature · 1 line
1.8.5