projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e48b9db
)
dm: table use uninitialized_var
author
Andrew Morton
<akpm@linux-foundation.org>
Fri, 8 Feb 2008 02:10:14 +0000
(
02:10
+0000)
committer
Alasdair G Kergon
<agk@redhat.com>
Fri, 8 Feb 2008 02:10:14 +0000
(
02:10
+0000)
drivers/md/dm-table.c: In function 'dm_get_device':
drivers/md/dm-table.c:478: warning: 'dev' may be used uninitialized in this function
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-table.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-table.c
b/drivers/md/dm-table.c
index 444a4fb64328cd78ec12cad69b533857a9e166b2..f16062982383b71b6b74fea80972e8d93047a02a 100644
(file)
--- a/
drivers/md/dm-table.c
+++ b/
drivers/md/dm-table.c
@@
-475,7
+475,7
@@
static int __table_get_device(struct dm_table *t, struct dm_target *ti,
int mode, struct dm_dev **result)
{
int r;
- dev_t
dev
;
+ dev_t
uninitialized_var(dev)
;
struct dm_dev *dd;
unsigned int major, minor;