summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorforsyth <forsyth@lavoro.terzarima.net>2013-06-03 21:42:24 +0000
committerforsyth <forsyth@lavoro.terzarima.net>2013-06-03 21:42:24 +0000
commit3c170abf01095f92152437053a24df246c1789a7 (patch)
treea3c2fa03e717ab44506a219cd19833f875500eab
parentdea4b9f1bb02529d02b0389c1f6b0e514ed7deff (diff)
account for missing case
-rw-r--r--os/pxa/devuart.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/os/pxa/devuart.c b/os/pxa/devuart.c
index 4b8cc140..13b2107a 100644
--- a/os/pxa/devuart.c
+++ b/os/pxa/devuart.c
@@ -1021,6 +1021,9 @@ uartwrite(Chan *c, void *buf, long n, vlong)
cmd[n] = 0;
uartctl(p, cmd);
return n;
+ default:
+ error(Egreg);
+ return n;
}
}