Commit dbbb6ab1 authored by Luca Ellero's avatar Luca Ellero Committed by Greg Kroah-Hartman
Browse files

staging: ced1401: fix ced_in_self_test()



Rename camel case arguments and locals in function ced_in_self_test()

Signed-off-by: default avatarLuca Ellero <luca.ellero@brickedbrain.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c586fc57
Loading
Loading
Loading
Loading
+8 −8
Original line number Original line Diff line number Diff line
@@ -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
** ced_in_self_test - utility to check in self test. Return 1 for ST, 0 for not
** a -ve error code if we failed for some reason.
** 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;
	unsigned int state, error;
	int iReturn = ced_get_state(ced, &state, &error);	/*  see if in self-test */
	int ret = ced_get_state(ced, &state, &error); /* see if in self-test */
	if (iReturn == U14ERR_NOERROR)	/*  if all still OK */
	if (ret == U14ERR_NOERROR)	/*  if all still OK */
		iReturn = (state == (unsigned int)-1) ||	/*  TX problem or... */
		ret = (state == (unsigned int)-1) ||	/*  TX problem or... */
		    ((state & 0xff) == 0x80);	/*  ...self test */
		    ((state & 0xff) == 0x80);	/*  ...self test */
	*pState = state;	/*  return actual state */
	*stat = state;	/*  return actual state */
	return iReturn;
	return ret;
}
}


/***************************************************************************
/***************************************************************************