staging: comedi: Remove unused variable ‘min_full_scale’ and function 'get_min_full_scales'
Subsystems (3)
PATCH v2 1/1 staging: comedi: Remove unused variable ‘min_full_scale’ and function 'get_min_full_scales'
The variable ‘min_full_scale’ and function 'get_min_full_scales' are not used, So delete them.
---
Changes from v2:
* Delete function 'get_min_full_scales'
drivers/comedi/drivers/jr3_pci.c | 15 --------------- 1 file changed, 15 deletions(-)
drivers/comedi/drivers/jr3_pci.c +0 -15
@@ -186,19 +186,6 @@ static void set_full_scales(struct jr3_sensor __iomem *sensor,set_s16 (&sensor->command_word0,0x0a00 ); } -static struct six_axis_t get_min_full_scales (struct jr3_sensor __iomem *sensor) -{ -struct six_axis_t result; - - result.fx =get_s16 (&sensor->min_full_scale.fx); - result.fy =get_s16 (&sensor->min_full_scale.fy); - result.fz =get_s16 (&sensor->min_full_scale.fz); - result.mx =get_s16 (&sensor->min_full_scale.mx); - result.my =get_s16 (&sensor->min_full_scale.my); - result.mz =get_s16 (&sensor->min_full_scale.mz); -return result; -} -static struct six_axis_t get_max_full_scales (struct jr3_sensor __iomem *sensor) {struct six_axis_t result;
@@ -504,10 +491,8 @@ jr3_pci_poll_subdevice(struct comedi_subdevice *s) result =poll_delay_min_max (20 ,100 ); }else {/* Set full scale */ -struct six_axis_t min_full_scale;struct six_axis_t max_full_scale; - min_full_scale =get_min_full_scales (sensor); max_full_scale =get_max_full_scales (sensor);set_full_scales (sensor, max_full_scale);
Signature · 1 line
2.17.1
Borislav Petkov
maintainerQuoted 9 lines · Bixuan Cui
The variable ‘min_full_scale’ and function '
get_min_full_scales' are not used, So delete them.Signed-off-by Bixuan Cui <[email protected]>---
Changes from v2:
* Delete function 'get_min_full_scales'drivers/comedi/drivers/jr3_pci.c | 15 ---------------
You shouldn't wonder when you don't get a proper reply with that Cc list:
./scripts/get_maintainer.pl -f drivers/comedi/drivers/jr3_pci.c
Ian Abbott <[email protected]> (odd fixer:COMEDI DRIVERS)
H Hartley Sweeten <[email protected]> (odd fixer:COMEDI DRIVERS) Greg Kroah-Hartman <[email protected]> (commit_signer:2/2=100%,authored:1/2=50%) "Alexander A. Klimov" <[email protected]> (commit_signer:1/2=50%,authored:1/2=50%) [email protected] (open list)
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteQuoted 9 lines · Borislav Petkov
You shouldn't wonder when you don't get a proper reply with that Cc list:
./scripts/get_maintainer.pl-fdrivers/comedi/drivers/jr3_pci.c
Ian Abbott <[email protected]> (odd fixer:COMEDI DRIVERS)
H Hartley Sweeten <[email protected]> (odd fixer:COMEDI DRIVERS) Greg Kroah-Hartman <[email protected]> (commit_signer:2/2=100%,authored:1/2=50%) "Alexander A. Klimov" <[email protected]> (commit_signer:1/2=50%,authored:1/2=50%) [email protected] (open list)
Thank you for your reminder, this is my mistake :-(
Thanks
Bixuan Cui