drm/nouveau: use NULL for pointer assignment.

Replace the use of 0 in the pointer assignment with NULL to address the
following sparse warning:
drivers/gpu/drm/nouveau/nouveau_hwmon.c:744:29: warning: Using plain integer as NULL pointer

Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Wambui Karuga 2019-12-31 23:57:34 +03:00 коммит произвёл Ben Skeggs
Родитель cd04e4ffd5
Коммит b4229fc67d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -741,7 +741,7 @@ nouveau_hwmon_init(struct drm_device *dev)
special_groups[i++] = &pwm_fan_sensor_group; special_groups[i++] = &pwm_fan_sensor_group;
} }
special_groups[i] = 0; special_groups[i] = NULL;
hwmon_dev = hwmon_device_register_with_info(dev->dev, "nouveau", dev, hwmon_dev = hwmon_device_register_with_info(dev->dev, "nouveau", dev,
&nouveau_chip_info, &nouveau_chip_info,
special_groups); special_groups);