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:
Rickard Strandqvist 2014-06-15 00:56:32 +02:00 committed by Greg Kroah-Hartman
parent eb5dd416fb
commit b82f412bcf

View file

@ -1743,15 +1743,10 @@ U14API(short) U14GetString(short hand, char* pBuffer, unsigned short wMaxLen)
NULL, 0, tstr, wMaxLen+sizeof(short), NULL, 0, tstr, wMaxLen+sizeof(short),
&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); strcpy(pBuffer, tstr);
sErr = U14ERR_NOERROR; sErr = U14ERR_NOERROR;
} }
else
sErr = U14ERR_DRIVCOMMS;
}
else else
{ {
sErr = (short)GetLastError(); sErr = (short)GetLastError();