Commit b82f412b authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by Greg Kroah-Hartman
Browse files

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: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent eb5dd416
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -1743,15 +1743,10 @@ U14API(short) U14GetString(short hand, char* pBuffer, unsigned short wMaxLen)
                                    NULL, 0, tstr, wMaxLen+sizeof(short),
                                    &dwBytes, NULL);
                    if (iOK)                        /* Device IO control OK ? */
                    {
                        if (dwBytes >= 0)           /* If driver OK */
                    {
                        strcpy(pBuffer, tstr);
                        sErr = U14ERR_NOERROR;
                    }
                        else
                            sErr = U14ERR_DRIVCOMMS;
                    }
                    else
                    {
                        sErr = (short)GetLastError();