Fix these compiler warnings: media-git/include/media/media-device.h: In function 'media_device_pci_init': media-git/include/media/media-device.h:610:9: warning: 'return' with a value, in function returning void return NULL; ^ media-git/include/media/media-device.h: In function '__media_device_usb_init': media-git/include/media/media-device.h:618:9: warning: 'return' with a value, in function returning void return NULL; ^
Unified · Split
| @@ -693,7 +693,6 @@ static inline void media_device_pci_init(struct media_device *mdev, · 692 unmodified lines | |||
| 693 | struct pci_dev *pci_dev, | 693 | struct pci_dev *pci_dev, |
| 694 | char *name) | 694 | char *name) |
| 695 | { | 695 | { |
| 696 | return NULL; | ||
| 697 | } | 696 | } |
| 698 | 697 | ||
| 699 | static inline void __media_device_usb_init(struct media_device *mdev, | 698 | static inline void __media_device_usb_init(struct media_device *mdev, |
| @@ -701,7 +700,6 @@ static inline void __media_device_usb_init(struct media_device *mdev, · 1 unmodified line | |||
| 701 | char *board_name, | 700 | char *board_name, |
| 702 | char *driver_name) | 701 | char *driver_name) |
| 703 | { | 702 | { |
| 704 | return NULL; | ||
| 705 | } | 703 | } |
| 706 | 704 | ||
| 707 | #endif /* CONFIG_MEDIA_CONTROLLER */ | 705 | #endif /* CONFIG_MEDIA_CONTROLLER */ |