public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] PCI: cpqphp: Remove an unused field in struct ctrl_dbg
@ 2024-10-12 19:53 Christophe JAILLET
  2024-10-16 19:42 ` Bjorn Helgaas
  0 siblings, 1 reply; 2+ messages in thread
From: Christophe JAILLET @ 2024-10-12 19:53 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: linux-kernel, kernel-janitors, Christophe JAILLET, linux-pci

'ctrl' is unused, remove it to save a few bytes when the structure is
allocated.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
Compile tested only
---
 drivers/pci/hotplug/cpqphp_sysfs.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pci/hotplug/cpqphp_sysfs.c b/drivers/pci/hotplug/cpqphp_sysfs.c
index fed1360ee9b1..6143ebf71f21 100644
--- a/drivers/pci/hotplug/cpqphp_sysfs.c
+++ b/drivers/pci/hotplug/cpqphp_sysfs.c
@@ -123,7 +123,6 @@ static int spew_debug_info(struct controller *ctrl, char *data, int size)
 struct ctrl_dbg {
 	int size;
 	char *data;
-	struct controller *ctrl;
 };
 
 #define MAX_OUTPUT	(4*PAGE_SIZE)
-- 
2.47.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] PCI: cpqphp: Remove an unused field in struct ctrl_dbg
  2024-10-12 19:53 [PATCH] PCI: cpqphp: Remove an unused field in struct ctrl_dbg Christophe JAILLET
@ 2024-10-16 19:42 ` Bjorn Helgaas
  0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2024-10-16 19:42 UTC (permalink / raw)
  To: Christophe JAILLET
  Cc: Bjorn Helgaas, linux-kernel, kernel-janitors, linux-pci

On Sat, Oct 12, 2024 at 09:53:42PM +0200, Christophe JAILLET wrote:
> 'ctrl' is unused, remove it to save a few bytes when the structure is
> allocated.
> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>

Applied to pci/hotplug for v6.13, thanks!

> ---
> Compile tested only
> ---
>  drivers/pci/hotplug/cpqphp_sysfs.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/pci/hotplug/cpqphp_sysfs.c b/drivers/pci/hotplug/cpqphp_sysfs.c
> index fed1360ee9b1..6143ebf71f21 100644
> --- a/drivers/pci/hotplug/cpqphp_sysfs.c
> +++ b/drivers/pci/hotplug/cpqphp_sysfs.c
> @@ -123,7 +123,6 @@ static int spew_debug_info(struct controller *ctrl, char *data, int size)
>  struct ctrl_dbg {
>  	int size;
>  	char *data;
> -	struct controller *ctrl;
>  };
>  
>  #define MAX_OUTPUT	(4*PAGE_SIZE)
> -- 
> 2.47.0
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-16 19:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-12 19:53 [PATCH] PCI: cpqphp: Remove an unused field in struct ctrl_dbg Christophe JAILLET
2024-10-16 19:42 ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox