Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6385969b authored by David S. Miller's avatar David S. Miller
Browse files

irda: irproc: Fix set-but-unused variables.



The variable 'd' is set but unused in irda_proc_register().

Just kill it off.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1627ea35
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -65,14 +65,13 @@ static const struct irda_entry irda_dirs[] = {
void __init irda_proc_register(void)
void __init irda_proc_register(void)
{
{
	int i;
	int i;
	struct proc_dir_entry *d;


	proc_irda = proc_mkdir("irda", init_net.proc_net);
	proc_irda = proc_mkdir("irda", init_net.proc_net);
	if (proc_irda == NULL)
	if (proc_irda == NULL)
		return;
		return;


	for (i = 0; i < ARRAY_SIZE(irda_dirs); i++)
	for (i = 0; i < ARRAY_SIZE(irda_dirs); i++)
		d = proc_create(irda_dirs[i].name, 0, proc_irda,
		(void) proc_create(irda_dirs[i].name, 0, proc_irda,
				   irda_dirs[i].fops);
				   irda_dirs[i].fops);
}
}