[S390] Get rid of a bunch of sparse warnings again.
Also removes a bunch of ^L in drivers/s390/cio/cmf.c 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
f536010642
commit
364c85584e
@@ -140,9 +140,11 @@ static ssize_t chp_measurement_chars_read(struct kobject *kobj,
|
||||
char *buf, loff_t off, size_t count)
|
||||
{
|
||||
struct channel_path *chp;
|
||||
struct device *device;
|
||||
unsigned int size;
|
||||
|
||||
chp = to_channelpath(container_of(kobj, struct device, kobj));
|
||||
device = container_of(kobj, struct device, kobj);
|
||||
chp = to_channelpath(device);
|
||||
if (!chp->cmg_chars)
|
||||
return 0;
|
||||
|
||||
@@ -193,9 +195,11 @@ static ssize_t chp_measurement_read(struct kobject *kobj,
|
||||
{
|
||||
struct channel_path *chp;
|
||||
struct channel_subsystem *css;
|
||||
struct device *device;
|
||||
unsigned int size;
|
||||
|
||||
chp = to_channelpath(container_of(kobj, struct device, kobj));
|
||||
device = container_of(kobj, struct device, kobj);
|
||||
chp = to_channelpath(device);
|
||||
css = to_css(chp->dev.parent);
|
||||
|
||||
size = sizeof(struct cmg_entry);
|
||||
|
Reference in New Issue
Block a user