kernel: silence some warnings
[jmk] --rw-rw-r-- M 1084359 glenda sys 41693 Apr 18 07:29 sys/src/9/pc/ether2114x.c
/n/sourcesdump/2006/0418/plan9/sys/src/9/pc/ether2114x.c:1692,1698 -
/n/sourcesdump/2006/0419/plan9/sys/src/9/pc/ether2114x.c:1692,1697
switch(ctlr->id){
default:
break;
-
case Pnic: /* PNIC */
/*
* Turn off the jabber timer.
[jmk] --rw-rw-r-- M 1084359 glenda sys 55087 Apr 18 07:30 sys/src/9/pc/sd53c8xx.c
/n/sourcesdump/2006/0418/plan9/sys/src/9/pc/sd53c8xx.c:1998,2022 -
/n/sourcesdump/2006/0419/plan9/sys/src/9/pc/sd53c8xx.c:1998,2025
static int
xfunc(Controller *c, enum na_external x, unsigned long *v)
{
- switch (x)
- {
+ switch (x) {
+ default:
+ print("xfunc: can't find external %d\n", x);
+ return 0;
case X_scsi_id_buf:
- *v = offsetof(Dsa, scsi_id_buf[0]); return 1;
+ *v = offsetof(Dsa, scsi_id_buf[0]);
+ break;
case X_msg_out_buf:
- *v = offsetof(Dsa, msg_out_buf); return 1;
+ *v = offsetof(Dsa, msg_out_buf);
+ break;
case X_cmd_buf:
- *v = offsetof(Dsa, cmd_buf); return 1;
+ *v = offsetof(Dsa, cmd_buf);
+ break;
case X_data_buf:
- *v = offsetof(Dsa, data_buf); return 1;
+ *v = offsetof(Dsa, data_buf);
+ break;
case X_status_buf:
- *v = offsetof(Dsa, status_buf); return 1;
+ *v = offsetof(Dsa, status_buf);
+ break;
case X_dsa_head:
- *v = DMASEG(&c->dsalist.head[0]); return 1;
- case X_ssid_mask:
- *v = SSIDMASK(c); return 1;
- default:
- print("xfunc: can't find external %d\n", x);
- return 0;
+ *v = DMASEG(&c->dsalist.head[0]);
+ break;
}
return 1;
}
|