mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-23 08:55:56 -04:00
[S390] Fix sparse warnings.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
committed by
Martin Schwidefsky
parent
7e560814de
commit
d2c993d845
@@ -394,7 +394,7 @@ dasd_add_busid(char *bus_id, int features)
|
||||
if (!new)
|
||||
return ERR_PTR(-ENOMEM);
|
||||
spin_lock(&dasd_devmap_lock);
|
||||
devmap = 0;
|
||||
devmap = NULL;
|
||||
hash = dasd_hash_busid(bus_id);
|
||||
list_for_each_entry(tmp, &dasd_hashlists[hash], list)
|
||||
if (strncmp(tmp->bus_id, bus_id, BUS_ID_SIZE) == 0) {
|
||||
@@ -406,10 +406,10 @@ dasd_add_busid(char *bus_id, int features)
|
||||
new->devindex = dasd_max_devindex++;
|
||||
strncpy(new->bus_id, bus_id, BUS_ID_SIZE);
|
||||
new->features = features;
|
||||
new->device = 0;
|
||||
new->device = NULL;
|
||||
list_add(&new->list, &dasd_hashlists[hash]);
|
||||
devmap = new;
|
||||
new = 0;
|
||||
new = NULL;
|
||||
}
|
||||
spin_unlock(&dasd_devmap_lock);
|
||||
kfree(new);
|
||||
@@ -479,7 +479,7 @@ dasd_device_from_devindex(int devindex)
|
||||
int i;
|
||||
|
||||
spin_lock(&dasd_devmap_lock);
|
||||
devmap = 0;
|
||||
devmap = NULL;
|
||||
for (i = 0; (i < 256) && !devmap; i++)
|
||||
list_for_each_entry(tmp, &dasd_hashlists[i], list)
|
||||
if (tmp->devindex == devindex) {
|
||||
|
||||
Reference in New Issue
Block a user