mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
mouse_parser.c: Fix warning by properly checking return code
This commit is contained in:
1 parent
df74da01b7
commit
7071eb3ada
1 file changed
+1
-1
@@ -299,7 +299,7 @@ void mouse_parser_enqueue( unsigned char *buffer, size_t size )
|
||||
BUTTON bptr;
|
||||
|
||||
while( size-- ) {
|
||||
if ( MOU_Data( *buffer++, &dx, &dy, &dz, &bptr ) ) {
|
||||
if ( MOU_Data( *buffer++, &dx, &dy, &dz, &bptr ) == 1 ) {
|
||||
struct MW_UID_MESSAGE m;
|
||||
|
||||
m.type = MV_UID_REL_POS;
|
||||
|
||||
Reference in new issue
Block a user