diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 2002-04-11 08:52:32 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 2002-04-11 08:52:32 +0000 |
| commit | f8b318ce581942976caaabc04d1f4a112d6c7fcd (patch) | |
| tree | 1096016071b4150d982e908cf531b6f06cc2785d /sys | |
| parent | 8adaef858dc63496757bd198186356b5d7717c06 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/ata/ata-raid.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-raid.h b/sys/dev/ata/ata-raid.h index 8755acc4bb7f..755b147abf9b 100644 --- a/sys/dev/ata/ata-raid.h +++ b/sys/dev/ata/ata-raid.h @@ -158,8 +158,8 @@ struct promise_raid_conf { u_int32_t dummy_0; u_int64_t magic_0; -#define PR_MAGIC0(x) ((u_int64_t)x.device->channel->unit << 48) | \ - ((u_int64_t)(x.device->unit != 0) << 56) +#define PR_MAGIC0(x) (x.device ? ((u_int64_t)x.device->channel->unit<<48) | \ + ((u_int64_t)(x.device->unit != 0) << 56) : 0) u_int16_t magic_1; u_int32_t magic_2; u_int8_t filler1[470]; |
