aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/parisc
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2012-11-03 06:58:36 -0400
committerHelge Deller <deller@gmx.de>2013-02-20 16:49:07 -0500
commit93c3e913e104c9277e32a0d7e03f268d146c57ee (patch)
tree06201c54ff564d4afe4458857dddcf2886adfc57 /drivers/parisc
parent3fad9b8d597f3a901fde947fc531886f685652c7 (diff)
drivers/parisc/pdc_stable.c: use WARN
Use WARN rather than printk followed by WARN_ON(1), for conciseness. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/parisc')
-rw-r--r--drivers/parisc/pdc_stable.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/parisc/pdc_stable.c b/drivers/parisc/pdc_stable.c
index 246a92f677e4..0f54ab6260df 100644
--- a/drivers/parisc/pdc_stable.c
+++ b/drivers/parisc/pdc_stable.c
@@ -212,12 +212,10 @@ pdcspath_store(struct pdcspath_entry *entry)
212 entry, devpath, entry->addr); 212 entry, devpath, entry->addr);
213 213
214 /* addr, devpath and count must be word aligned */ 214 /* addr, devpath and count must be word aligned */
215 if (pdc_stable_write(entry->addr, devpath, sizeof(*devpath)) != PDC_OK) { 215 if (pdc_stable_write(entry->addr, devpath, sizeof(*devpath)) != PDC_OK)
216 printk(KERN_ERR "%s: an error occurred when writing to PDC.\n" 216 WARN(1, KERN_ERR "%s: an error occurred when writing to PDC.\n"
217 "It is likely that the Stable Storage data has been corrupted.\n" 217 "It is likely that the Stable Storage data has been corrupted.\n"
218 "Please check it carefully upon next reboot.\n", __func__); 218 "Please check it carefully upon next reboot.\n", __func__);
219 WARN_ON(1);
220 }
221 219
222 /* kobject is already registered */ 220 /* kobject is already registered */
223 entry->ready = 2; 221 entry->ready = 2;