[S390] Cleanup xpram printk messages.
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 14 Jul 2008 07:59:24 +0000 (09:59 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 14 Jul 2008 08:02:18 +0000 (10:02 +0200)
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
drivers/s390/block/xpram.c

index f231bc2..dd9b986 100644 (file)
@@ -100,15 +100,10 @@ static int xpram_page_in (unsigned long page_addr, unsigned int xpage_index)
                : "+d" (cc) : "a" (__pa(page_addr)), "d" (xpage_index) : "cc");
        if (cc == 3)
                return -ENXIO;
-       if (cc == 2) {
-               PRINT_ERR("expanded storage lost!\n");
+       if (cc == 2)
                return -ENXIO;
-       }
-       if (cc == 1) {
-               PRINT_ERR("page in failed for page index %u.\n",
-                         xpage_index);
+       if (cc == 1)
                return -EIO;
-       }
        return 0;
 }
 
@@ -135,15 +130,10 @@ static long xpram_page_out (unsigned long page_addr, unsigned int xpage_index)
                : "+d" (cc) : "a" (__pa(page_addr)), "d" (xpage_index) : "cc");
        if (cc == 3)
                return -ENXIO;
-       if (cc == 2) {
-               PRINT_ERR("expanded storage lost!\n");
+       if (cc == 2)
                return -ENXIO;
-       }
-       if (cc == 1) {
-               PRINT_ERR("page out failed for page index %u.\n",
-                         xpage_index);
+       if (cc == 1)
                return -EIO;
-       }
        return 0;
 }