mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 06:38:03 +02:00
Warning fixes.
This commit is contained in:
parent
d477cc007c
commit
51ed2f5937
4 changed files with 6 additions and 6 deletions
|
|
@ -257,7 +257,7 @@ static void DRM(cleanup_buf_error)(drm_device_t *dev, drm_buf_entry_t *entry)
|
|||
#if __HAVE_PCI_DMA
|
||||
if (entry->seg_count) {
|
||||
for (i = 0; i < entry->seg_count; i++) {
|
||||
if (entry->seglist[i] != NULL)
|
||||
if (entry->seglist[i] != 0)
|
||||
DRM(pci_free)(dev, entry->buf_size,
|
||||
(void *)entry->seglist[i],
|
||||
entry->seglist_bus[i]);
|
||||
|
|
|
|||
|
|
@ -78,10 +78,10 @@
|
|||
#endif
|
||||
|
||||
#ifndef DRIVER_PREINIT
|
||||
#define DRIVER_PREINIT(dev) 0
|
||||
#define DRIVER_PREINIT(dev) do {} while (0)
|
||||
#endif
|
||||
#ifndef DRIVER_POSTINIT
|
||||
#define DRIVER_POSTINIT(dev) 0
|
||||
#define DRIVER_POSTINIT(dev) do {} while (0)
|
||||
#endif
|
||||
#ifndef DRIVER_PRERELEASE
|
||||
#define DRIVER_PRERELEASE()
|
||||
|
|
|
|||
|
|
@ -257,7 +257,7 @@ static void DRM(cleanup_buf_error)(drm_device_t *dev, drm_buf_entry_t *entry)
|
|||
#if __HAVE_PCI_DMA
|
||||
if (entry->seg_count) {
|
||||
for (i = 0; i < entry->seg_count; i++) {
|
||||
if (entry->seglist[i] != NULL)
|
||||
if (entry->seglist[i] != 0)
|
||||
DRM(pci_free)(dev, entry->buf_size,
|
||||
(void *)entry->seglist[i],
|
||||
entry->seglist_bus[i]);
|
||||
|
|
|
|||
|
|
@ -78,10 +78,10 @@
|
|||
#endif
|
||||
|
||||
#ifndef DRIVER_PREINIT
|
||||
#define DRIVER_PREINIT(dev) 0
|
||||
#define DRIVER_PREINIT(dev) do {} while (0)
|
||||
#endif
|
||||
#ifndef DRIVER_POSTINIT
|
||||
#define DRIVER_POSTINIT(dev) 0
|
||||
#define DRIVER_POSTINIT(dev) do {} while (0)
|
||||
#endif
|
||||
#ifndef DRIVER_PRERELEASE
|
||||
#define DRIVER_PRERELEASE()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue