]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[S390] cio: Remove check for ssd in chpids_show().
authorCornelia Huck <cornelia.huck@de.ibm.com>
Mon, 5 Feb 2007 20:16:56 +0000 (21:16 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 5 Feb 2007 20:16:56 +0000 (21:16 +0100)
Since ssd_info is now available before the subchannel is registered,
we don't need to check whether it is available.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/device.c

index 78ed65bf2f99091144f3c4f5f28dc90144b6b936..eedf863c6c64c944693f57a8954a5b3defe1f731 100644 (file)
@@ -234,11 +234,8 @@ chpids_show (struct device * dev, struct device_attribute *attr, char * buf)
        ssize_t ret = 0;
        int chp;
 
-       if (ssd)
-               for (chp = 0; chp < 8; chp++)
-                       ret += sprintf (buf+ret, "%02x ", ssd->chpid[chp]);
-       else
-               ret += sprintf (buf, "n/a");
+       for (chp = 0; chp < 8; chp++)
+               ret += sprintf (buf+ret, "%02x ", ssd->chpid[chp]);
        ret += sprintf (buf+ret, "\n");
        return min((ssize_t)PAGE_SIZE, ret);
 }