xpp: Fix a logical not being applied to the wrong operand
[dahdi/tools.git] / xpp / mpptalk.c
index e49c3cd..9bab867 100644 (file)
@@ -512,7 +512,7 @@ int mpp_send_seg(struct astribank_device *astribank, const uint8_t *data, uint16
 
        assert(astribank != NULL);
        xtalk_dev = astribank->xtalk_dev;
 
        assert(astribank != NULL);
        xtalk_dev = astribank->xtalk_dev;
-       if(!astribank->burn_state == BURN_STATE_STARTED) {
+       if(astribank->burn_state != BURN_STATE_STARTED) {
                ERR("Tried to send a segment while burn_state=%d\n",
                                astribank->burn_state);
                return -EINVAL;
                ERR("Tried to send a segment while burn_state=%d\n",
                                astribank->burn_state);
                return -EINVAL;