Re: [PATCH 3/9] Update messaging and usb_device refs in ni_usb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 01, 2024 at 06:46:59PM +0100, Dave Penkler wrote:
>       Replace GPIB_DPRINTK with dev_dbg
>       Replace pr_xxx with dev_xxx wherever possible
>       Use previously initialized usb_device pointer
>       for usb_get_dev() and usb_put_dev().
> 
> Signed-off-by: Dave Penkler <dpenkler@xxxxxxxxx>
> ---
>  drivers/staging/gpib/ni_usb/ni_usb_gpib.c | 377 ++++++++++++----------
>  1 file changed, 205 insertions(+), 172 deletions(-)
> 
> diff --git a/drivers/staging/gpib/ni_usb/ni_usb_gpib.c b/drivers/staging/gpib/ni_usb/ni_usb_gpib.c
> index 9ff56b063681..50ec934fe8be 100644
> --- a/drivers/staging/gpib/ni_usb/ni_usb_gpib.c
> +++ b/drivers/staging/gpib/ni_usb/ni_usb_gpib.c
> @@ -132,13 +132,14 @@ static int ni_usb_nonblocking_send_bulk_msg(struct ni_usb_priv *ni_priv, void *d
>  	if (timeout_msecs)
>  		mod_timer(&ni_priv->bulk_timer, jiffies + msecs_to_jiffies(timeout_msecs));
>  
> -	//pr_err("%s: submitting urb\n", __func__);
> +	//dev_err(&usb_dev->dev, "%s: submitting urb\n", __func__);

Just delete commented out code.

regards,
dan carpenter





[Index of Archives]     [Linux Driver Development]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux