* [PATCH] random: remove the unused parameter to avoid the compile warning.
@ 2014-08-06 5:20 Xiubo Li
0 siblings, 0 replies; only message in thread
From: Xiubo Li @ 2014-08-06 5:20 UTC (permalink / raw)
To: arnd, gregkh, tytso; +Cc: linux-kernel, Xiubo Li
drivers/char/random.c: In function SYSC_getrandom:
drivers/char/random.c:1526:6: warning: unused variable r [-Wunused-variable]
int r;
^
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
---
drivers/char/random.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 37d8970..c18d41d 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -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;
--
1.8.5
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-06 5:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-06 5:20 [PATCH] random: remove the unused parameter to avoid the compile warning Xiubo Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®