Skip to content

Commit

Permalink
Matrox accelerant: assignation to B_OK -> condition never true.
Browse files Browse the repository at this point in the history
Assignation to B_OK in if condition means it will never be true. Replace with ==.

CID 991072, 991155 and 604410.
  • Loading branch information
stpere committed Jul 2, 2015
1 parent 11f43ff commit bb4ab43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/add-ons/accelerants/matrox/engine/mga_acc.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ status_t gx00_acc_init()
/* used for convenience: MACCESS is a write only register! */
uint32 maccess = 0x00000000;
/* if we were unable to read PINS, we have to assume something (keeping bit6 zero) */
if ((si->ps.card_type >= G450) && (si->ps.pins_status = B_OK))
if ((si->ps.card_type >= G450) && (si->ps.pins_status == B_OK))
{
/* b7 v5_mem_type = done by Mark Watson. fixme: still confirm! (unknown bits) */
maccess |= ((((uint32)si->ps.v5_mem_type) & 0x80) >> 1);
Expand Down

0 comments on commit bb4ab43

Please sign in to comment.