From: Jonathan Cameron Date: Wed, 26 Oct 2011 16:27:38 +0000 (+0100) Subject: staging:iio:triggers Remove unecessary existence checks and return val X-Git-Tag: v3.3-rc1~152^2~101^2~340 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67be8e32c9f98453faeb9a992a47bd5910c9fb2e;p=pandora-kernel.git staging:iio:triggers Remove unecessary existence checks and return val Postenable and predisable are called via buffer->ops so don't need to check if buffer exists. The return value of iio_device_register_trigger_consumer is always zero and it isn't checked anyway so get rid of it. Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed