public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@linaro.org>
To: Tomasz Unger <tomasz.unger@yahoo.pl>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-media@vger.kernel.org, linux-staging@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: media: av7110: remove print_time() dead code
Date: Fri, 20 Mar 2026 12:37:24 +0300	[thread overview]
Message-ID: <ab0VVFimveEhibR6@stanley.mountain> (raw)
In-Reply-To: <20260320-av7110-remove-print-time-v1-1-05402287078a@yahoo.pl>

On Fri, Mar 20, 2026 at 09:46:15AM +0100, Tomasz Unger wrote:
> The DEBUG_TIMING macro is commented out and can never be defined,
> making the print_time() function body always empty. Remove the
> commented-out macro, the unused function definition and all its
> call sites as they serve no purpose.
> 
> Signed-off-by: Tomasz Unger <tomasz.unger@yahoo.pl>
> ---
> Checked with scripts/checkpatch.pl - no errors, no warnings.
> Compiled and verified by loading the module in QEMU.
> ---
>  drivers/staging/media/av7110/av7110.c | 14 --------------
>  1 file changed, 14 deletions(-)
> 
> diff --git a/drivers/staging/media/av7110/av7110.c b/drivers/staging/media/av7110/av7110.c
> index 607992100baf..9f4ed1e24b17 100644
> --- a/drivers/staging/media/av7110/av7110.c
> +++ b/drivers/staging/media/av7110/av7110.c
> @@ -314,17 +314,6 @@ static int DvbDmxFilterCallback(u8 *buffer1, size_t buffer1_len,
>  	}
>  }
>  
> -//#define DEBUG_TIMING
> -static inline void print_time(char *s)
> -{
> -#ifdef DEBUG_TIMING
> -	struct timespec64 ts;
> -
> -	ktime_get_real_ts64(&ts);
> -	pr_info("%s(): %ptSp\n", s, &ts);
> -#endif
> -}
> -
>  #define DEBI_READ 0
>  #define DEBI_WRITE 1
>  static inline void start_debi_dma(struct av7110 *av7110, int dir,
> @@ -353,7 +342,6 @@ static void debiirq(struct tasklet_struct *t)
>  	int handle = (type >> 8) & 0x1f;
>  	unsigned int xfer = 0;
>  
> -	print_time("debi");
>  	dprintk(4, "type 0x%04x\n", type);
>  
>  	if (type == -1) {
> @@ -473,7 +461,6 @@ static void gpioirq(struct tasklet_struct *t)
>  	txbuf = irdebi(av7110, DEBINOSWAP, TX_BUFF, 0, 2);
>  	len = (av7110->debilen + 3) & ~3;
>  
> -	print_time("gpio");
>  	dprintk(8, "GPIO0 irq 0x%04x %d\n", av7110->debitype, av7110->debilen);
>  
>  	switch (av7110->debitype & 0xff) {
> @@ -2785,7 +2772,6 @@ static void av7110_irq(struct saa7146_dev *dev, u32 *isr)
>  {
>  	struct av7110 *av7110 = dev->ext_priv;
>  
> -	//print_time("av7110_irq");
>  
>  	/* Note: Don't try to handle the DEBI error irq (MASK_18), in

Delete the extra blank line as well.

regards,
dan carpenter


      reply	other threads:[~2026-03-20  9:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260320-av7110-remove-print-time-v1-1-05402287078a.ref@yahoo.pl>
2026-03-20  8:46 ` [PATCH] staging: media: av7110: remove print_time() dead code Tomasz Unger
2026-03-20  9:37   ` Dan Carpenter [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ab0VVFimveEhibR6@stanley.mountain \
    --to=dan.carpenter@linaro.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=mchehab@kernel.org \
    --cc=tomasz.unger@yahoo.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox