mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-27 06:11:51 +00:00
Silence some more ioctl coverity warnings
This commit is contained in:
parent
fa8db9b4d2
commit
36f700927e
@ -90,8 +90,10 @@ static void parport_poll_pad(struct parport_joypad *pad)
|
||||
char data;
|
||||
char status;
|
||||
|
||||
ioctl(pad->fd, PPRDATA, &data);
|
||||
ioctl(pad->fd, PPRSTATUS, &status);
|
||||
if (ioctl(pad->fd, PPRDATA, &data) < 0)
|
||||
return;
|
||||
if (ioctl(pad->fd, PPRSTATUS, &status) < 0)
|
||||
return;
|
||||
|
||||
for (i = 0; i < 8; i++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user