diff options
author | Ursula Braun <ursula.braun@de.ibm.com> | 2009-08-25 22:01:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-26 20:34:22 -0400 |
commit | 7c6a3ed5bd61ec981c8a0d0111cfd435adf3f2b7 (patch) | |
tree | 12986f915010601bc5e911488ebb60ff466c9cbe /drivers/s390 | |
parent | 0d788c7d285a91ef72a7b436dbe753d117856b3d (diff) |
qeth: display "undefined" value of sysfs-attribute "layer2"
If nothing has been written into the qeth sysfs-attribute layer2,
its value is "-1" meaning "not yet defined". But the value is
displayed as "1" meaning "layer2 selected". The patch changes the
reading of this "-1"-value to "-1" to make clear the layer2-attribute
has not yet been defined.
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/net/qeth_core_sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_core_sys.c b/drivers/s390/net/qeth_core_sys.c index 568465d7517f..33505c2a0e3a 100644 --- a/drivers/s390/net/qeth_core_sys.c +++ b/drivers/s390/net/qeth_core_sys.c | |||
@@ -364,7 +364,7 @@ static ssize_t qeth_dev_layer2_show(struct device *dev, | |||
364 | if (!card) | 364 | if (!card) |
365 | return -EINVAL; | 365 | return -EINVAL; |
366 | 366 | ||
367 | return sprintf(buf, "%i\n", card->options.layer2 ? 1:0); | 367 | return sprintf(buf, "%i\n", card->options.layer2); |
368 | } | 368 | } |
369 | 369 | ||
370 | static ssize_t qeth_dev_layer2_store(struct device *dev, | 370 | static ssize_t qeth_dev_layer2_store(struct device *dev, |