]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - drivers/parisc/lba_pci.c
UBUNTU: Ubuntu-snapdragon-4.4.0-1044.48
[mirror_ubuntu-zesty-kernel.git] / drivers / parisc / lba_pci.c
index 42844c2bc065bcd8bc486a11ae9714e9d31adc20..d0c2759076a2b122648ebad5f0164c685880b540 100644 (file)
@@ -111,8 +111,10 @@ static u32 lba_t32;
 
 
 /* Looks nice and keeps the compiler happy */
-#define LBA_DEV(d) ((struct lba_device *) (d))
-
+#define LBA_DEV(d) ({                          \
+       void *__pdata = d;                      \
+       BUG_ON(!__pdata);                       \
+       (struct lba_device *)__pdata; })
 
 /*
 ** Only allow 8 subsidiary busses per LBA