Eliminate mostly unused local variable.
Found by: FlexeLint
This commit is contained in:
parent
d2f30d92a7
commit
00999c80d8
@ -471,19 +471,16 @@ fail:
|
||||
static int
|
||||
bktr_detach( device_t dev )
|
||||
{
|
||||
unsigned int unit;
|
||||
|
||||
struct bktr_softc *bktr = device_get_softc(dev);
|
||||
|
||||
unit = device_get_unit(dev);
|
||||
|
||||
/* Disable the brooktree device */
|
||||
OUTL(bktr, BKTR_INT_MASK, ALL_INTS_DISABLED);
|
||||
OUTW(bktr, BKTR_GPIO_DMA_CTL, FIFO_RISC_DISABLED);
|
||||
|
||||
#if defined(BKTR_USE_FREEBSD_SMBUS)
|
||||
if (bt848_i2c_detach(dev))
|
||||
printf("bktr%d: i2c_attach: can't attach\n", unit);
|
||||
printf("bktr%d: i2c_attach: can't attach\n",
|
||||
device_get_unit(dev));
|
||||
#endif
|
||||
|
||||
/* Note: We do not free memory for RISC programs, grab buffer, vbi buffers */
|
||||
|
Loading…
x
Reference in New Issue
Block a user