mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
fwcontrol: eliminate set but not used warning
The variable was used in an #if 0 block; just move the variable definition and setting into the same block since Firewire is mainly of historical interest and is unlikely to see ongoing development in FreeBSD. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
5055ffaeba
commit
2d015cffc7
|
@ -258,7 +258,7 @@ dvsend(int d, const char *filename, char ich, int count)
|
|||
struct dvdbc *dv;
|
||||
struct fw_pkt *pkt;
|
||||
int len, tlen, header, fd, frames, packets, vec, offset, nhdr, i;
|
||||
int system=-1, pad_acc, cycle_acc, cycle, f_cycle, f_frac;
|
||||
int system=-1, pad_acc, cycle_acc, cycle, f_frac;
|
||||
struct iovec wbuf[TNBUF*2 + NEMPTY];
|
||||
char *pbuf;
|
||||
u_int32_t iso_data, iso_empty, hdr[TNBUF + NEMPTY][3];
|
||||
|
@ -359,10 +359,11 @@ dvsend(int d, const char *filename, char ich, int count)
|
|||
if (frames % frame_rate[system] == 0)
|
||||
fprintf(stderr, "\n");
|
||||
fflush(stderr);
|
||||
f_cycle = (cycle_acc / frame_cycle[system].d) & 0xf;
|
||||
f_frac = (cycle_acc % frame_cycle[system].d
|
||||
* CYCLE_FRAC) / frame_cycle[system].d;
|
||||
#if 0
|
||||
int f_cycle;
|
||||
f_cycle = (cycle_acc / frame_cycle[system].d) & 0xf;
|
||||
ciph->fdf.dv.cyc = htons(f_cycle << 12 | f_frac);
|
||||
#else
|
||||
ciph->fdf.dv.cyc = htons(cycle << 12 | f_frac);
|
||||
|
|
Loading…
Reference in a new issue