iio: triggers: Make trigger ops structure explicitly non optional.
authorJonathan Cameron <jic23@kernel.org>
Sat, 14 May 2016 17:42:08 +0000 (18:42 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 29 May 2016 14:00:10 +0000 (15:00 +0100)
commitef2d71d6b7fbbb57e332883d8fad39f2adb9199e
tree1939a31a26064c95c736e8cd65fac2239ea399ec
parent8ac8aa61f87eda944cf29229c9c20cba9e83f1ea
iio: triggers: Make trigger ops structure explicitly non optional.

This structure has not been optional for a long time (if ever) but the
code implies that it is.  As we then use it later in a fashion that would
crash if it was in fact NULL, it's inconsistent so fix it up by removing
unnecessary checks.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-trigger.c