staging: iio: Fix incorrect existence check for a shared event pointer.
authorJonathan Cameron <jic23@cam.ac.uk>
Sat, 9 Jan 2010 17:01:33 +0000 (17:01 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:42 +0000 (16:42 -0800)
commit75b16013e29f6058e5bd648e6f4a9c03d262cf4f
tree3a3abcdc57bf0d7d2d4e5189e5ad84068eac516f
parent75c8075394906b4bda4b056328bd9b401277d9b8
staging: iio: Fix incorrect existence check for a shared event pointer.

A second smatch detected error. First part fixes in a typo
in the comment directly above that I noticed whilst trying
to remember what this code actually does. Second part is
the actual fix.  I'm fairly amazed this one never caused
trouble in testing as it is in one of the most common paths.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/industrialio-core.c