diff options
Diffstat (limited to 'drivers/parisc/pdc_stable.c')
-rw-r--r-- | drivers/parisc/pdc_stable.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/parisc/pdc_stable.c b/drivers/parisc/pdc_stable.c index 97b345858043..ea1b7a63598e 100644 --- a/drivers/parisc/pdc_stable.c +++ b/drivers/parisc/pdc_stable.c | |||
@@ -622,22 +622,12 @@ static ssize_t | |||
622 | pdcs_osid_read(struct subsystem *entry, char *buf) | 622 | pdcs_osid_read(struct subsystem *entry, char *buf) |
623 | { | 623 | { |
624 | char *out = buf; | 624 | char *out = buf; |
625 | char *tmpstr = NULL; | ||
626 | 625 | ||
627 | if (!entry || !buf) | 626 | if (!entry || !buf) |
628 | return -EINVAL; | 627 | return -EINVAL; |
629 | 628 | ||
630 | switch (pdcs_osid) { | 629 | out += sprintf(out, "%s dependent data (0x%.4x)\n", |
631 | case 0x0000: tmpstr = "No OS"; break; | 630 | os_id_to_string(pdcs_osid), pdcs_osid); |
632 | case 0x0001: tmpstr = "HP-UX"; break; | ||
633 | case 0x0002: tmpstr = "MPE-iX"; break; | ||
634 | case 0x0003: tmpstr = "OSF"; break; | ||
635 | case 0x0004: tmpstr = "HP-RT"; break; | ||
636 | case 0x0005: tmpstr = "Novell Netware"; break; | ||
637 | case 0x0006: tmpstr = "Linux"; break; | ||
638 | default: tmpstr = "Unknown"; break; | ||
639 | } | ||
640 | out += sprintf(out, "%s dependent data (0x%.4x)\n", tmpstr, pdcs_osid); | ||
641 | 631 | ||
642 | return out - buf; | 632 | return out - buf; |
643 | } | 633 | } |