summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ced1401
diff options
context:
space:
mode:
authorLuca Ellero <luca.ellero@brickedbrain.com>2014-07-10 11:02:12 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-10 15:09:26 -0700
commitdbbb6ab117472b1f0779664c5e8f2cf4323ce2ce (patch)
tree4fd141551ba2ea3953951dd25e972c7fc6aec142 /drivers/staging/ced1401
parentc586fc5754b53c18e6b31e792e73c60c1e6623db (diff)
downloadop-kernel-dev-dbbb6ab117472b1f0779664c5e8f2cf4323ce2ce.zip
op-kernel-dev-dbbb6ab117472b1f0779664c5e8f2cf4323ce2ce.tar.gz
staging: ced1401: fix ced_in_self_test()
Rename camel case arguments and locals in function ced_in_self_test() Signed-off-by: Luca Ellero <luca.ellero@brickedbrain.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ced1401')
-rw-r--r--drivers/staging/ced1401/ced_ioc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/ced1401/ced_ioc.c b/drivers/staging/ced1401/ced_ioc.c
index 8c847ff..528061b 100644
--- a/drivers/staging/ced1401/ced_ioc.c
+++ b/drivers/staging/ced1401/ced_ioc.c
@@ -276,18 +276,18 @@ int ced_read_write_cancel(struct ced_data *ced)
}
/***************************************************************************
-** ced_in_self_test - utility to check in self test. Return 1 for ST, 0 for not or
-** a -ve error code if we failed for some reason.
+** ced_in_self_test - utility to check in self test. Return 1 for ST, 0 for not
+** or a -ve error code if we failed for some reason.
***************************************************************************/
-static int ced_in_self_test(struct ced_data *ced, unsigned int *pState)
+static int ced_in_self_test(struct ced_data *ced, unsigned int *stat)
{
unsigned int state, error;
- int iReturn = ced_get_state(ced, &state, &error); /* see if in self-test */
- if (iReturn == U14ERR_NOERROR) /* if all still OK */
- iReturn = (state == (unsigned int)-1) || /* TX problem or... */
+ int ret = ced_get_state(ced, &state, &error); /* see if in self-test */
+ if (ret == U14ERR_NOERROR) /* if all still OK */
+ ret = (state == (unsigned int)-1) || /* TX problem or... */
((state & 0xff) == 0x80); /* ...self test */
- *pState = state; /* return actual state */
- return iReturn;
+ *stat = state; /* return actual state */
+ return ret;
}
/***************************************************************************
OpenPOWER on IntegriCloud