From: Cristina Opriceana Date: Mon, 3 Aug 2015 10:37:40 +0000 (+0300) Subject: iio: industrialio-buffer: Fix iio_buffer_poll return value X-Git-Tag: omap-for-v4.3/fixes-merge-window~44^2~139^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bdc0293901cbea23c6dc29432e81919d4719844;p=pandora-kernel.git iio: industrialio-buffer: Fix iio_buffer_poll return value Change return value to 0 if no device is bound since unsigned int cannot support negative error codes. Fixes: f18e7a068 ("iio: Return -ENODEV for file operations if the device has been unregistered") Signed-off-by: Cristina Opriceana Cc: Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed