mirror of
https://github.com/rcornwell/sims.git
synced 2026-01-25 19:56:04 +00:00
KA10: Removed some coverity errors.
This commit is contained in:
@@ -460,7 +460,7 @@ lp20_printline(UNIT *uptr, int nl) {
|
||||
int trim = 0;
|
||||
|
||||
/* Trim off trailing blanks */
|
||||
while (lp20_col >= 0 && lp20_buffer[lp20_col - 1] == ' ') {
|
||||
while (lp20_col != 0 && lp20_buffer[lp20_col - 1] == ' ') {
|
||||
lp20_col--;
|
||||
trim = 1;
|
||||
}
|
||||
|
||||
@@ -383,9 +383,9 @@ uba_clr_irq(DIB *idev)
|
||||
if (dibp->uba_ctl == idev->uba_ctl &&
|
||||
dibp->uba_irq_pend != 0) {
|
||||
lvl = 0;
|
||||
for (j = 0200; j != 0; j>>=2) {
|
||||
for (j = 0200; j != 0; j>>=1) {
|
||||
/* At least one, no need to continue */
|
||||
if ((dibp->uba_irq_pend & (0200 >> j)) != 0) {
|
||||
if ((dibp->uba_irq_pend & j) != 0) {
|
||||
set_interrupt(dibp->uba_ctl<<2, pi);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user