staging: ozwpan: Fix wrong error check.
authorRupesh Gujare <rupesh.gujare@atmel.com>
Fri, 23 Aug 2013 15:11:01 +0000 (16:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Aug 2013 17:12:32 +0000 (10:12 -0700)
commitdfc065f19fe0ce4ef7a52011801c5c19131e6529
treed5bd9275b39e989ad4e5b4df66159c0925b3e114
parent9efed32c223a0dabebeeeca7c1b3cdafb97fbde4
staging: ozwpan: Fix wrong error check.

schedule_work() returns true if succeeded & false on failure,
error check was doing exactly reverse.
Also removes extra variable.

Signed-off-by: Rupesh Gujare <rupesh.gujare@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozpd.c