Re: [PATCH 2/3] hv: vmbus_post_msg: retry the hypercall on HV_STATUS_INVALID_CONNECTION_ID

2015-01-30 Thread Vitaly Kuznetsov
Dexuan Cui de...@microsoft.com writes: -Original Message- From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] Sent: Thursday, January 29, 2015 21:31 PM To: Dexuan Cui Cc: gre...@linuxfoundation.org; linux-ker...@vger.kernel.org; driverdev- de...@linuxdriverproject.org;

RE: [PATCH 00/10] staging: comedi: introduce comedi_pcmcia.h header

2015-01-30 Thread Hartley Sweeten
On Friday, January 30, 2015 2:57 AM, Ian Abbott wrote: comedidev.h includes PCMCIA-specific stuff that gets included by all comedi drivers including non-PCMCIA ones. Separate it out into its own header comedi_pcmcia.h. Make the new header include pcmcia/cistpl.h, pcmcia/ds.h and comedidev.h

Re: [PATCH] staging: unisys: virtpci: virtpci: Fix for possible null pointer dereference

2015-01-30 Thread Rickard Strandqvist
2015-01-30 13:59 GMT+01:00 Peter Hurley pe...@hurleysoftware.com: On 01/30/2015 07:39 AM, Dan Carpenter wrote: Btw, if you have the smatch cross function database set up then you can figure out this sort of thing by using: $ smdb.py virtpci_driver_attr_store It says that:

Re: [PATCH] staging: emxx_udc: emxx_udc: Removed variables that is never used

2015-01-30 Thread Chris Rorvick
On Fri, Jan 30, 2015 at 11:35 AM, Rickard Strandqvist rickard_strandqv...@spectrumdigital.se wrote: 2015-01-30 15:20 GMT+01:00 Dan Carpenter dan.carpen...@oracle.com: Yes. Please send that as a patch which can be applied. regards, dan carpenter Hi Okay, I'll do it this weekend. Or do

Re: [PATCH] staging: emxx_udc: emxx_udc: Removed variables that is never used

2015-01-30 Thread Rickard Strandqvist
2015-01-30 15:20 GMT+01:00 Dan Carpenter dan.carpen...@oracle.com: Yes. Please send that as a patch which can be applied. regards, dan carpenter Hi Okay, I'll do it this weekend. Or do you do it Chris? Kind regards Rickard Strandqvist ___ devel

Re: [PATCH] staging: comedi: drivers: addi-data: hwdrv_apci1500: Change variables that is never used

2015-01-30 Thread Greg Kroah-Hartman
On Fri, Jan 30, 2015 at 11:18:31PM +0300, Dan Carpenter wrote: Richard, asked some questions out of band. I like these patches where they can remove the whole line. I don't like them where they leave stray, unneeded function calls. Or if we know that we need the function calls then I like

[PATCH v2] staging: emxx_udc: Remove nbu2ss_drv_set_dp_info()

2015-01-30 Thread Chris Rorvick
This function is an awkward helper for nbu2ss_drv_ep_init(). Most of its logic is devoted to determining if the current endpoint is ep0, something the caller can easily do in a single line. And there is not a lot going on beyond that. Move this logic up into nbu2ss_drv_ep_init(). The result is

[PATCH] staging: emxx_udc: Remove nbu2ss_drv_set_dp_info()

2015-01-30 Thread Chris Rorvick
This function is an awkward helper for nbu2ss_drv_ep_init(). Most of its logic is devoted to determining if the current endpoint is ep0, something the caller can easily do in a single line. And there is not a lot going on beyond that. Move this logic up into nbu2ss_drv_ep_init(). The result is

Re: [PATCH] staging: emxx_udc: Remove nbu2ss_drv_set_dp_info()

2015-01-30 Thread Chris Rorvick
On Fri, Jan 30, 2015 at 5:30 PM, Chris Rorvick ch...@rorvick.com wrote: + + ep-ep.maxpacket = (i == 0 ? EP0_PACKETSIZE : EP0_PACKETSIZE); + Damn. I looked this over twice before sending this and still only noticed this stupid typo after sending it. Will send a v2 shortly.

[GIT PULL] Staging driver fixes for 3.19-rc7

2015-01-30 Thread Greg KH
The following changes since commit ec6f34e5b552fb0a52e6aae1a5afbbb1605cc6cc: Linux 3.19-rc5 (2015-01-18 18:02:20 +1200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/ tags/staging-3.19-rc7 for you to fetch changes up to

[PATCH v2] staging: lustre: lustre: osc: modifying seq_printf statements

2015-01-30 Thread Heba Aamer
This patch modifies the seq_printf statements in drivers/staging/lustre/lustre/osc/lproc_osc.c file. It changes it to seq_puts and seq_putc wherever applicable. Signed-off-by: Heba Aamer heba93aa...@gmail.com --- v2: changing %% to % drivers/staging/lustre/lustre/osc/lproc_osc.c | 20

[PATCH] staging/lustre: remove unused lustre_update.h header

2015-01-30 Thread green
From: Oleg Drokin gr...@linuxhacker.ru lustre_update.h containts various server-side structures that are not really relevant for the client. Also remove the only user of this file that does not actually need it. Signed-off-by: Oleg Drokin gr...@linuxhacker.ru ---

Re: [PATCH] staging: vt6656: removed erroneous else statement

2015-01-30 Thread Greg Kroah-Hartman
On Fri, Jan 30, 2015 at 10:43:19PM -0500, Derrick Greenspan wrote: This patch fixes the checkpatch.pl warning: WARNING: else is not generally useful after a break or return 559: FILE: drivers/staging/vt6656/rxtx.c:559: return vnt_rxtx_datahead_g_fb(tx_context, buf-data_head); } else {

[PATCH] staging: vt6656: removed erroneous else statement

2015-01-30 Thread Derrick Greenspan
This patch fixes the checkpatch.pl warning: WARNING: else is not generally useful after a break or return 559: FILE: drivers/staging/vt6656/rxtx.c:559: return vnt_rxtx_datahead_g_fb(tx_context, buf-data_head); } else { Signed-off-by: Derrick Greenspan derrick.greens...@knights.ucf.edu ---

[PATCHv2] staging: vt6656: removed erroneous else statement

2015-01-30 Thread Derrick Greenspan
This patch fixes the checkpatch.pl warning: WARNING: else is not generally useful after a break or return 559: FILE: drivers/staging/vt6656/rxtx.c:559: return vnt_rxtx_datahead_g_fb(tx_context, buf-data_head); } else { Signed-off-by: Derrick Greenspan derrick.greens...@knights.ucf.edu ---

Re: [PATCHv2] staging: vt6656: removed erroneous else statement

2015-01-30 Thread Dan Carpenter
On Fri, Jan 30, 2015 at 11:15:36PM -0500, Derrick Greenspan wrote: + } + struct vnt_cts *buf = head-cts_g; This declaration adds a GCC warning. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org

Re: [PATCH] staging: media: lirc: lirc_zilog: Fix for possible null pointer dereference

2015-01-30 Thread Andy Walls
On Fri, 2015-01-30 at 08:09 -0500, valdis.kletni...@vt.edu wrote: On Fri, 30 Jan 2015 16:00:02 +0300, Dan Carpenter said: - if (ir == NULL) { - dev_err(ir-l.dev, close: no private_data attached to the file !\n); commit

Re: [PATCH] staging: emxx_udc: emxx_udc: Removed variables that is never used

2015-01-30 Thread Dan Carpenter
Yes. Please send that as a patch which can be applied. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH v3 00/20] power_supply: Allow safe usage of power supply

2015-01-30 Thread Krzysztof Kozlowski
Hi, The patchset changes power supply API and drivers implementing power supply class. TLDR for driver and subsystem maintainers = Two patches of patchset change power_supply_register() function so in the same time they touch all drivers. I am kindly

[PATCH v3 01/20] power_supply: Add driver private data

2015-01-30 Thread Krzysztof Kozlowski
Allow drivers to store private data inside power_supply structure for later usage in power supply operations. Usage of driver private data is necessary to access driver's state container object from power supply calls (like get_property()) if struct 'power_supply' is a stored there as a pointer,

[PATCH v3 04/20] power_supply: sysfs: Use power_supply_*() API for accessing function attrs

2015-01-30 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access in case of unregistering the power supply (e.g. by removing the driver). Replace: - get_property - power_supply_get_property - set_property - power_supply_set_property - property_is_writeable -

[PATCH v3 10/20] power_supply: charger-manager: Use power_supply_*() API for accessing function attrs

2015-01-30 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access in case of unregistering the power supply (e.g. by removing the driver). Replace: - get_property - power_supply_get_property Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by:

[PATCH v3 08/20] power_supply: apm_power: Use power_supply_*() API for accessing function attrs

2015-01-30 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access in case of unregistering the power supply (e.g. by removing the driver). Replace: - get_property - power_supply_get_property Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by:

[PATCH v3 03/20] power_supply: Add API for safe access of power supply function attrs

2015-01-30 Thread Krzysztof Kozlowski
Add simple wrappers for accessing power supply's function attributes: - get_property - power_supply_get_property - set_property - power_supply_set_property - property_is_writeable - power_supply_property_is_writeable - external_power_changed - power_supply_external_power_changed This API

[PATCH v3 05/20] power_supply: 88pm860x_charger: Use power_supply_*() API for accessing function attrs

2015-01-30 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access in case of unregistering the power supply (e.g. by removing the driver). Replace: - get_property - power_supply_get_property - set_property - power_supply_set_property Signed-off-by: Krzysztof

[PATCH v3 12/20] power_supply: Add power_supply_put for decrementing device reference counter

2015-01-30 Thread Krzysztof Kozlowski
The power_supply_get_by_phandle() and power_supply_get_by_name() use function class_find_device() for obtaining the reference to power supply. Each use of class_find_device() increases the power supply's device reference counter. However the reference counter was not decreased by users of this

[PATCH v3 09/20] power_supply: bq2415x_charger: Use power_supply_*() API for accessing function attrs

2015-01-30 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access in case of unregistering the power supply (e.g. by removing the driver). Replace: - get_property - power_supply_get_property Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by:

[PATCH v3 17/20] power_supply: 88pm860x_charger: Decrement the power supply's device reference counter

2015-01-30 Thread Krzysztof Kozlowski
Use power_supply_put() to decrement the power supply's device reference counter. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by: Pavel Machek pa...@ucw.cz Reviewed-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Reviewed-by: Sebastian Reichel s...@kernel.org ---

[PATCH v3 14/20] power_supply: charger-manager: Decrement the power supply's device reference counter

2015-01-30 Thread Krzysztof Kozlowski
Use power_supply_put() to decrement the power supply's device reference counter. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by: Pavel Machek pa...@ucw.cz Reviewed-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Reviewed-by: Sebastian Reichel s...@kernel.org ---

[PATCH v3 15/20] x86/olpc/xo1/sci: Use newly added power_supply_put API

2015-01-30 Thread Krzysztof Kozlowski
Replace direct usage of put_device() with new API: power_supply_put(). Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by: Pavel Machek pa...@ucw.cz Reviewed-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Reviewed-by: Sebastian Reichel s...@kernel.org ---

[PATCH v3 13/20] power_supply: Increment power supply use counter when obtaining references

2015-01-30 Thread Krzysztof Kozlowski
Increment the power_supply.use_cnt usage counter on: - power_supply_get_by_phandle() - power_supply_get_by_name() and decrement it on power_supply_put() call. This helps tracking of valid usage of power supply instance by consumers. The usage counter itself also allows safe calling of

[PATCH v3 19/20] mfd: ab8500: Decrement the power supply's device reference counter

2015-01-30 Thread Krzysztof Kozlowski
Use power_supply_put() to decrement the power supply's device reference counter. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by: Pavel Machek pa...@ucw.cz Acked-by: Linus Walleij linus.wall...@linaro.org Acked-by: Lee Jones lee.jo...@linaro.org Reviewed-by: Bartlomiej

[PATCH v3 18/20] power_supply: bq2415x_charger: Decrement the power supply's device reference counter

2015-01-30 Thread Krzysztof Kozlowski
Use power_supply_put() to decrement the power supply's device reference counter (increased by power_supply_get_by_name() or power_supply_get_by_phandle()). Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by: Pavel Machek pa...@ucw.cz Reviewed-by: Bartlomiej Zolnierkiewicz

[PATCH v3 16/20] x86/olpc/xo15/sci: Use newly added power_supply_put API

2015-01-30 Thread Krzysztof Kozlowski
Replace direct usage of put_device() with new API: power_supply_put(). Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by: Pavel Machek pa...@ucw.cz Reviewed-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Reviewed-by: Sebastian Reichel s...@kernel.org ---

[PATCH v3 20/20] arm: mach-pxa: Decrement the power supply's device reference counter

2015-01-30 Thread Krzysztof Kozlowski
Use power_supply_put() to decrement the power supply's device reference counter. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Reviewed-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Reviewed-by: Sebastian Reichel s...@kernel.org --- arch/arm/mach-pxa/raumfeld.c | 4 +++- 1

RE: [PATCH net] hyperv: Fix the error processing in netvsc_send()

2015-01-30 Thread Haiyang Zhang
-Original Message- From: Jason Wang [mailto:jasow...@redhat.com] Sent: Friday, January 30, 2015 5:25 AM + if (ret != 0) { + if (section_index != NETVSC_INVALID_INDEX) + netvsc_free_send_slot(net_device, section_index); What if ret is -EINVAL or

Re: [PATCH v2] staging: comedi: drivers: jr3_pci: Removed variables that is never used

2015-01-30 Thread Ian Abbott
On 29/01/15 22:15, Rickard Strandqvist wrote: Variable was assigned a value that was never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist

Re: [PATCH v2] staging: comedi: drivers: addi_apci_3501: Removed variables that is never used

2015-01-30 Thread Ian Abbott
On 29/01/15 22:34, Rickard Strandqvist wrote: Variable was assigned a value that was never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist

Re: [PATCH v2] staging: comedi: drivers: addi-data: hwdrv_apci3501: Removed variables that is never used

2015-01-30 Thread Ian Abbott
On 29/01/15 22:30, Rickard Strandqvist wrote: Variable was assigned a value that was never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist

[PATCH 07/10] staging: comedi: ni_labpc_cs: include new comedi_pcmcia.h header

2015-01-30 Thread Ian Abbott
Include the new ../comedi_pcmcia.h header instead of pcmcia/cistpl.h, pcmcia/cisreg.h, pcmcia/ds.h and ../comedidev.h. pcmcia/cisreg.h isn't needed and the others will now get included indirectly. Signed-off-by: Ian Abbott abbo...@mev.co.uk --- drivers/staging/comedi/drivers/ni_labpc_cs.c | 6

[PATCH 01/10] staging: comedi: add comedi_pcmcia.h

2015-01-30 Thread Ian Abbott
Add a new header that Comedi PCMCIA drivers can include instead of comedidev.h. Currently, it just pulls in pcmcia/cistpl.h, pcmcia/ds.h and comedidev.h, but the plan is to migrate the PCMCIA-specific stuff from comedidev.h here. Signed-off-by: Ian Abbott abbo...@mev.co.uk ---

[PATCH 05/10] staging: comedi: ni_daq_700: include new comedi_pcmcia.h header

2015-01-30 Thread Ian Abbott
Include the new ../comedi_pcmcia.h header instead of pcmcia/cistpl.h, pcmcia/ds.h and ../comedidev.h, which will now get included indirectly. Signed-off-by: Ian Abbott abbo...@mev.co.uk --- drivers/staging/comedi/drivers/ni_daq_700.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-)

[PATCH 10/10] staging: comedi: comedi_pcmcia.h: move PCMCIA stuff out of comedidev.h

2015-01-30 Thread Ian Abbott
Move the PCMCIA-specific stuff out of comedidev.h into comedi_pcmcia.h. Comedi PCMCIA drivers now include comedi_pcmcia.h instead of comedidev.h, which now gets pulled in indirectly. Signed-off-by: Ian Abbott abbo...@mev.co.uk --- drivers/staging/comedi/comedi_pcmcia.h | 28

[PATCH 09/10] staging: comedi: quatech_daqp_cs: include new comedi_pcmcia.h header

2015-01-30 Thread Ian Abbott
Include the new ../comedi_pcmcia.h header instead of pcmcia/cistpl.h, pcmcia/cisreg.h, pcmcia/ds.h and ../comedidev.h. pcmcia/cisreg.h isn't needed and the others will now get included indirectly. Signed-off-by: Ian Abbott abbo...@mev.co.uk --- drivers/staging/comedi/drivers/quatech_daqp_cs.c |

[PATCH 08/10] staging: comedi: ni_mio_cs: include new comedi_pcmcia.h header

2015-01-30 Thread Ian Abbott
Include the new ../comedi_pcmcia.h header instead of pcmcia/cistpl.h, pcmcia/ds.h and ../comedidev.h, which will now get included indirectly. Signed-off-by: Ian Abbott abbo...@mev.co.uk --- drivers/staging/comedi/drivers/ni_mio_cs.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-)

[PATCH 06/10] staging: comedi: ni_daq_dio24: include new comedi_pcmcia.h header

2015-01-30 Thread Ian Abbott
Include the new ../comedi_pcmcia.h header instead of pcmcia/cistpl.h, pcmcia/cisreg.h, pcmcia/ds.h and ../comedidev.h. pcmcia/cisreg.h isn't needed and the others will now get included indirectly. Signed-off-by: Ian Abbott abbo...@mev.co.uk --- drivers/staging/comedi/drivers/ni_daq_dio24.c | 6

[PATCH 04/10] staging: comedi: das08_cs: include new comedi_pcmcia.h header

2015-01-30 Thread Ian Abbott
Include the new ../comedi_pcmcia.h header instead of pcmcia/cistpl.h, pcmcia/ds.h and ../comedidev.h, which will now get included indirectly. Signed-off-by: Ian Abbott abbo...@mev.co.uk --- drivers/staging/comedi/drivers/das08_cs.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff

Re: [PATCH net] hyperv: Fix the error processing in netvsc_send()

2015-01-30 Thread Jason Wang
On Fri, Jan 30, 2015 at 4:34 AM, Haiyang Zhang haiya...@microsoft.com wrote: The existing code frees the skb in EAGAIN case, in which the skb will be retried from upper layer and used again. Also, the existing code doesn't free send buffer slot in error case, because there is no completion

Re: [PATCH v2] staging: comedi: drivers: dyna_pci10xx: Removed variables that is never used

2015-01-30 Thread Ian Abbott
On 29/01/15 22:40, Rickard Strandqvist wrote: Variable was assigned a value that was never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist

Re: [PATCH] staging: unisys: virtpci: virtpci: Fix for possible null pointer dereference

2015-01-30 Thread Dan Carpenter
Run your patches through checkpatch.pl. On Thu, Jan 29, 2015 at 07:50:26PM +0100, Rickard Strandqvist wrote: - if (dprivate != NULL) + if (dprivate != NULL) { This is a double negative. Just say if (dprivate) {. Actually just reverse the test and remove the bogus printk. Say:

Re: [PATCH] staging: media: lirc: lirc_zilog: Fix for possible null pointer dereference

2015-01-30 Thread Valdis . Kletnieks
On Fri, 30 Jan 2015 16:00:02 +0300, Dan Carpenter said: - if (ir == NULL) { - dev_err(ir-l.dev, close: no private_data attached to the file !\n); Yes, the dev_err() call is an obvious thinko. However, I'm not sure whether removing it entirely is right either. If there

Re: [PATCH v2] staging: comedi: drivers: addi_apci_3501: Removed variables that is never used

2015-01-30 Thread Ian Abbott
On 30/01/15 12:10, Dan Carpenter wrote: On Fri, Jan 30, 2015 at 10:29:44AM +, Ian Abbott wrote: @@ -285,7 +284,7 @@ static irqreturn_t apci3501_interrupt(int irq, void *d) ul_Command1 = inl(dev-iobase + APCI3501_TIMER_CTRL_REG); ul_Command1 = ((ul_Command1 0xF9FDul) | 1

Re: [PATCH] staging: media: lirc: lirc_zilog: Fix for possible null pointer dereference

2015-01-30 Thread Dan Carpenter
On Thu, Jan 29, 2015 at 05:12:40PM -0500, valdis.kletni...@vt.edu wrote: On Thu, 29 Jan 2015 19:48:08 +0100, Rickard Strandqvist said: Fix a possible null pointer dereference, there is otherwise a risk of a possible null pointer dereference. This was found using a static code analysis

Re: [PATCH] staging: unisys: virtpci: virtpci: Fix for possible null pointer dereference

2015-01-30 Thread Peter Hurley
On 01/30/2015 07:39 AM, Dan Carpenter wrote: Btw, if you have the smatch cross function database set up then you can figure out this sort of thing by using: $ smdb.py virtpci_driver_attr_store It says that: fs/sysfs/file.c | sysfs_kf_write | (struct sysfs_ops)-store |

Re: [PATCH] staging: comedi: drivers: addi-data: hwdrv_apci1500: Change variables that is never used

2015-01-30 Thread Dan Carpenter
The more I look at these, the more I don't like these patches. The original code looks like: foo = inb(); There is a 90% chance that we should just delete the whole line, but the problem is that deleting the whole line is risky because sometimes reading from the hardware has side

Re: [PATCH v2] staging: comedi: drivers: usbduxsigma: Removed variables that is never used

2015-01-30 Thread Bernd Porr
Ian Abbott wrote: On 29/01/15 22:50, Rickard Strandqvist wrote: Variable was assigned a value that was never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist

Re: [PATCH v2] staging: comedi: drivers: usbduxsigma: Removed variables that is never used

2015-01-30 Thread Ian Abbott
On 29/01/15 22:50, Rickard Strandqvist wrote: Variable was assigned a value that was never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist

Re: [PATCH v2] staging: comedi: drivers: rtd520: Removed variables that is never used

2015-01-30 Thread Ian Abbott
On 29/01/15 22:43, Rickard Strandqvist wrote: Variable was assigned a value that was never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist

Re: [PATCH v2] staging: comedi: drivers: addi_apci_3501: Removed variables that is never used

2015-01-30 Thread Dan Carpenter
On Fri, Jan 30, 2015 at 10:29:44AM +, Ian Abbott wrote: @@ -285,7 +284,7 @@ static irqreturn_t apci3501_interrupt(int irq, void *d) ul_Command1 = inl(dev-iobase + APCI3501_TIMER_CTRL_REG); ul_Command1 = ((ul_Command1 0xF9FDul) | 1 1); outl(ul_Command1, dev-iobase +