staging:ccg: cleanup a bit of binding
authorDevendra Naga <devendra.aaru@gmail.com>
Thu, 13 Sep 2012 17:09:29 +0000 (13:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Sep 2012 03:20:28 +0000 (20:20 -0700)
commit7505817603854506732affb584ef6568a4702d6f
tree6c974090b6563035294d279c2097449abf6481a1
parent99d4b1a6cbfa8449dad5fb58e8c8044301e2667a
staging:ccg: cleanup a bit of binding

the ccg_bind_function uses ret variable and a logic around the
ccg_bind_enabled_functions to return a value other than 0 if
bind function fail, other wise returns 0, this can be achieved
with just a return ccg_bind_enabled_functions(dev, c);

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccg/ccg.c