diff options
Diffstat (limited to 'usr/src/uts/common/io/pm.c')
-rw-r--r-- | usr/src/uts/common/io/pm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/uts/common/io/pm.c b/usr/src/uts/common/io/pm.c index b9f146bf2a..7bbc43b915 100644 --- a/usr/src/uts/common/io/pm.c +++ b/usr/src/uts/common/io/pm.c @@ -68,7 +68,7 @@ #define PM_IDLEDOWN_TIME 10 #define MAXSMBIOSSTRLEN 64 /* from SMBIOS spec */ -#define MAXCOPYBUF (MAXSMBIOSSTRLEN + 1) +#define MAXCOPYBUF (MAXSMBIOSSTRLEN + 1) extern kmutex_t pm_scan_lock; /* protects autopm_enable, pm_scans_disabled */ extern kmutex_t pm_clone_lock; /* protects pm_clones array */ @@ -703,7 +703,7 @@ pm_timeout_idledown(void) static int pm_chpoll(dev_t dev, short events, int anyyet, short *reventsp, - struct pollhead **phpp) + struct pollhead **phpp) { extern struct pollhead pm_pollhead; /* common/os/sunpm.c */ int clone; @@ -1085,7 +1085,7 @@ pm_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cr, int *rval_p) if (pcip->inargs & INDATASTRING) { ASSERT(!(pcip->inargs & INDATAINT)); ASSERT(pcip->deptype == DEP); - if (req32.data != NULL) { + if (req32.data != 0) { if (copyinstr((void *)(uintptr_t) req32.data, dep, deplen, NULL)) { PMD(PMD_ERROR, ("ioctl: %s: " |