upeksonly: Fix build-time warnings
Fix warnings reported by gcc https://bugs.freedesktop.org/show_bug.cgi?id=56439
This commit is contained in:
parent
be29f27e25
commit
8f98743857
1 changed files with 1 additions and 6 deletions
|
@ -467,7 +467,6 @@ static void write_regs_finished(struct write_regs_data *wrdata, int result)
|
||||||
|
|
||||||
static void write_regs_iterate(struct write_regs_data *wrdata)
|
static void write_regs_iterate(struct write_regs_data *wrdata)
|
||||||
{
|
{
|
||||||
struct fpi_ssm *ssm;
|
|
||||||
struct libusb_control_setup *setup;
|
struct libusb_control_setup *setup;
|
||||||
const struct sonly_regwrite *regwrite;
|
const struct sonly_regwrite *regwrite;
|
||||||
int r;
|
int r;
|
||||||
|
@ -478,7 +477,6 @@ static void write_regs_iterate(struct write_regs_data *wrdata)
|
||||||
}
|
}
|
||||||
|
|
||||||
regwrite = &wrdata->regs[wrdata->regs_written];
|
regwrite = &wrdata->regs[wrdata->regs_written];
|
||||||
ssm = wrdata->ssm;
|
|
||||||
|
|
||||||
fp_dbg("set %02x=%02x", regwrite->reg, regwrite->value);
|
fp_dbg("set %02x=%02x", regwrite->reg, regwrite->value);
|
||||||
setup = libusb_control_transfer_get_setup(wrdata->transfer);
|
setup = libusb_control_transfer_get_setup(wrdata->transfer);
|
||||||
|
@ -1019,9 +1017,6 @@ static void initsm_2016_run_state(struct fpi_ssm *ssm)
|
||||||
|
|
||||||
static void initsm_1000_run_state(struct fpi_ssm *ssm)
|
static void initsm_1000_run_state(struct fpi_ssm *ssm)
|
||||||
{
|
{
|
||||||
struct fp_img_dev *dev = ssm->priv;
|
|
||||||
struct sonly_dev *sdev = dev->priv;
|
|
||||||
|
|
||||||
switch (ssm->cur_state) {
|
switch (ssm->cur_state) {
|
||||||
case INITSM_1000_WRITEV_1:
|
case INITSM_1000_WRITEV_1:
|
||||||
sm_write_regs(ssm, initsm_1000_writev_1, G_N_ELEMENTS(initsm_1000_writev_1));
|
sm_write_regs(ssm, initsm_1000_writev_1, G_N_ELEMENTS(initsm_1000_writev_1));
|
||||||
|
@ -1183,7 +1178,7 @@ static void initsm_complete(struct fpi_ssm *ssm)
|
||||||
static int dev_activate(struct fp_img_dev *dev, enum fp_imgdev_state state)
|
static int dev_activate(struct fp_img_dev *dev, enum fp_imgdev_state state)
|
||||||
{
|
{
|
||||||
struct sonly_dev *sdev = dev->priv;
|
struct sonly_dev *sdev = dev->priv;
|
||||||
struct fpi_ssm *ssm;
|
struct fpi_ssm *ssm = NULL;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
sdev->deactivating = FALSE;
|
sdev->deactivating = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue