projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ac5c61
)
openprom: Squelch useless GCC warning.
author
David S. Miller
<davem@davemloft.net>
Tue, 16 Jun 2009 10:46:54 +0000
(
03:46
-0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 16 Jun 2009 11:56:57 +0000
(
04:56
-0700)
drivers/sbus/char/openprom.c: In function ‘openprom_sunos_ioctl’:
drivers/sbus/char/openprom.c:306: warning: ‘opp’ may be used uninitialized in this function
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/sbus/char/openprom.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/sbus/char/openprom.c
b/drivers/sbus/char/openprom.c
index 124f660a0383173b8426fe9c9a1c7fd9e5fba0bb..75ac19b1192ff40d144fec752b7937b158abe86e 100644
(file)
--- a/
drivers/sbus/char/openprom.c
+++ b/
drivers/sbus/char/openprom.c
@@
-303,7
+303,7
@@
static int openprom_sunos_ioctl(struct inode * inode, struct file * file,
struct device_node *dp)
{
DATA *data = file->private_data;
- struct openpromio *opp;
+ struct openpromio *opp
= NULL
;
int bufsize, error = 0;
static int cnt;
void __user *argp = (void __user *)arg;