Skip to content

Commit

Permalink
ide: use printk_once
Browse files Browse the repository at this point in the history
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Marcin Slusarz authored and David S. Miller committed Sep 22, 2009
1 parent 7fa0772 commit 01f1afa
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions drivers/ide/ide-proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,8 @@ static const struct ide_proc_devset ide_generic_settings[] = {

static void proc_ide_settings_warn(void)
{
static int warned;

if (warned)
return;

printk(KERN_WARNING "Warning: /proc/ide/hd?/settings interface is "
printk_once(KERN_WARNING "Warning: /proc/ide/hd?/settings interface is "
"obsolete, and will be removed soon!\n");
warned = 1;
}

static int ide_settings_proc_show(struct seq_file *m, void *v)
Expand Down

0 comments on commit 01f1afa

Please sign in to comment.