Skip to content

Commit

Permalink
Remove less than 0 checks (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
1Revenger1 authored Aug 22, 2021
1 parent b4d9958 commit dd91aae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions VoodooPS2Controller/VoodooPS2Controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ void ApplePS2Controller::setCommandByteGated(PS2Request* request)
bool ApplePS2Controller::submitRequest(PS2Request * request)
{
// Make sure that the request is in bounds
if (request->port >= kPS2MaxIdx || request->port < kPS2KbdIdx)
if (request->port >= kPS2MaxIdx)
return false;

// Check that we only read from ports which are active in mux mode
Expand All @@ -973,7 +973,7 @@ bool ApplePS2Controller::submitRequest(PS2Request * request)
void ApplePS2Controller::submitRequestAndBlock(PS2Request * request)
{
// Make sure that the request is in bounds
if (request->port >= kPS2MaxIdx || request->port < kPS2KbdIdx)
if (request->port >= kPS2MaxIdx)
return;

// Check that we only read from ports which are active in mux mode
Expand Down

0 comments on commit dd91aae

Please sign in to comment.