diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2012-09-13 13:09:29 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-13 20:20:28 -0700 |
commit | 7505817603854506732affb584ef6568a4702d6f (patch) | |
tree | 6c974090b6563035294d279c2097449abf6481a1 /drivers/staging/ccg | |
parent | 99d4b1a6cbfa8449dad5fb58e8c8044301e2667a (diff) | |
download | op-kernel-dev-7505817603854506732affb584ef6568a4702d6f.zip op-kernel-dev-7505817603854506732affb584ef6568a4702d6f.tar.gz |
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>
Diffstat (limited to 'drivers/staging/ccg')
-rw-r--r-- | drivers/staging/ccg/ccg.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/staging/ccg/ccg.c b/drivers/staging/ccg/ccg.c index 565249b..3fbb300 100644 --- a/drivers/staging/ccg/ccg.c +++ b/drivers/staging/ccg/ccg.c @@ -1101,13 +1101,7 @@ static struct device_attribute *ccg_usb_attributes[] = { static int ccg_bind_config(struct usb_configuration *c) { struct ccg_dev *dev = _ccg_dev; - int ret = 0; - - ret = ccg_bind_enabled_functions(dev, c); - if (ret) - return ret; - - return 0; + return ccg_bind_enabled_functions(dev, c); } static void ccg_unbind_config(struct usb_configuration *c) |