mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
staging: ced1401: userspace: use1401.c: Cleaning up if statement that always evaluates to true
Unsigned variable can't be negative so it is unnecessary to test it. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
eb5dd416fb
commit
b82f412bcf
1 changed files with 2 additions and 7 deletions
|
@ -1744,13 +1744,8 @@ U14API(short) U14GetString(short hand, char* pBuffer, unsigned short wMaxLen)
|
||||||
&dwBytes, NULL);
|
&dwBytes, NULL);
|
||||||
if (iOK) /* Device IO control OK ? */
|
if (iOK) /* Device IO control OK ? */
|
||||||
{
|
{
|
||||||
if (dwBytes >= 0) /* If driver OK */
|
strcpy(pBuffer, tstr);
|
||||||
{
|
sErr = U14ERR_NOERROR;
|
||||||
strcpy(pBuffer, tstr);
|
|
||||||
sErr = U14ERR_NOERROR;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
sErr = U14ERR_DRIVCOMMS;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue