mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Operator precedence bug
PR: 11411 Submitted by: Christopher Peterson <cpeterso@cs.washington.edu>
This commit is contained in:
parent
271694cc1e
commit
f79cfdd928
2 changed files with 4 additions and 4 deletions
|
|
@ -23,7 +23,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: pcf.c,v 1.5 1998/11/04 22:09:17 nsouch Exp $
|
||||
* $Id: pcf.c,v 1.6 1998/12/07 21:58:22 archie Exp $
|
||||
*
|
||||
*/
|
||||
#include <sys/param.h>
|
||||
|
|
@ -362,7 +362,7 @@ static int pcf_start(device_t pcfdev, u_char slave, int timeout)
|
|||
struct pcf_softc *pcf = DEVTOSOFTC(pcfdev);
|
||||
int error = 0;
|
||||
|
||||
if (PCF_GET_S1(pcf) & nBB == 0)
|
||||
if ((PCF_GET_S1(pcf) & nBB) == 0)
|
||||
return (IIC_EBUSBSY);
|
||||
|
||||
/* set slave address to PCF. Last bit (LSB) must be set correctly
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: pcf.c,v 1.5 1998/11/04 22:09:17 nsouch Exp $
|
||||
* $Id: pcf.c,v 1.6 1998/12/07 21:58:22 archie Exp $
|
||||
*
|
||||
*/
|
||||
#include <sys/param.h>
|
||||
|
|
@ -362,7 +362,7 @@ static int pcf_start(device_t pcfdev, u_char slave, int timeout)
|
|||
struct pcf_softc *pcf = DEVTOSOFTC(pcfdev);
|
||||
int error = 0;
|
||||
|
||||
if (PCF_GET_S1(pcf) & nBB == 0)
|
||||
if ((PCF_GET_S1(pcf) & nBB) == 0)
|
||||
return (IIC_EBUSBSY);
|
||||
|
||||
/* set slave address to PCF. Last bit (LSB) must be set correctly
|
||||
|
|
|
|||
Loading…
Reference in a new issue