dlm: sanitize work_start() in lowcomms.c
authorNamhyung Kim <namhyung@gmail.com>
Mon, 13 Dec 2010 19:42:24 +0000 (13:42 -0600)
committerDavid Teigland <teigland@redhat.com>
Mon, 13 Dec 2010 19:42:24 +0000 (13:42 -0600)
commitb9d41052794385f9d47ebb7acf4a772f3ad02398
tree3908936d603917c36079a595e85ba0abd72b1c1c
parentf92c8dd7a0eb18124521e2b549f88422e17f707b
dlm: sanitize work_start() in lowcomms.c

The create_workqueue() returns NULL if failed rather than ERR_PTR().
Fix error checking and remove unnecessary variable 'error'.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c