diff options
Diffstat (limited to 'arch/s390/crypto/prng.c')
-rw-r--r-- | arch/s390/crypto/prng.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/crypto/prng.c b/arch/s390/crypto/prng.c index 8eb3a1aedc22..0cfefddd8375 100644 --- a/arch/s390/crypto/prng.c +++ b/arch/s390/crypto/prng.c | |||
@@ -90,7 +90,7 @@ static ssize_t prng_read(struct file *file, char __user *ubuf, size_t nbytes, | |||
90 | int ret = 0; | 90 | int ret = 0; |
91 | int tmp; | 91 | int tmp; |
92 | 92 | ||
93 | /* nbytes can be arbitrary long, we spilt it into chunks */ | 93 | /* nbytes can be arbitrary length, we split it into chunks */ |
94 | while (nbytes) { | 94 | while (nbytes) { |
95 | /* same as in extract_entropy_user in random.c */ | 95 | /* same as in extract_entropy_user in random.c */ |
96 | if (need_resched()) { | 96 | if (need_resched()) { |
@@ -146,7 +146,7 @@ static ssize_t prng_read(struct file *file, char __user *ubuf, size_t nbytes, | |||
146 | return ret; | 146 | return ret; |
147 | } | 147 | } |
148 | 148 | ||
149 | static struct file_operations prng_fops = { | 149 | static const struct file_operations prng_fops = { |
150 | .owner = THIS_MODULE, | 150 | .owner = THIS_MODULE, |
151 | .open = &prng_open, | 151 | .open = &prng_open, |
152 | .release = NULL, | 152 | .release = NULL, |