Skip to contentSkip to conversation

tools/xen-mfndump: Remove stray semicolon preventing 'dump-m2p' from functioning

PATCH Applied Andrew Cooper 3 participants 3 messages Mar 27, 2015 – Mar 30, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/xen-mfndump: Remove stray semicolon preventing 'dump-m2p' from functioning

Introduced by c/s 1781f00e

Coverity-IDs: 1291939 (stray semicolon), 1291941 (structually dead code)
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Ian Campbell <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
CC: Xen Coverity Team <[email protected]>

---
 tools/misc/xen-mfndump.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/misc/xen-mfndump.c +1 -1
index 0c018e0..ceeeaa9 100644
@@ -41,7 +41,7 @@ int dump_m2p_func(int argc, char *argv[])
     }
 
     /* Map M2P and obtain gpfn */
-    if ( xc_maximum_ram_page(xch, &max_mfn) < 0 );
+    if ( xc_maximum_ram_page(xch, &max_mfn) < 0 )
     {
         ERROR("Failed to get the maximum mfn");
         return -1;
Signature · 1 line
1.7.10.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Andrew Cooper

Introduced by c/s 1781f00e

Coverity-IDs: 1291939 (stray semicolon), 1291941 (structually dead code)
CC: Konrad Rzeszutek Wilk <[email protected]>

Quoted 24 lines
CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
CC Wei Liu <[email protected]>
CC Xen Coverity Team <[email protected]>
---
 tools/misc/xen-mfndump.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/misc/xen-mfndump.c +1 -1
index 0c018e0..ceeeaa9 100644
@@ -41,7 +41,7 @@ int dump_m2p_func(int argc, char *argv[])
     }
 
     /* Map M2P and obtain gpfn */
-    if ( xc_maximum_ram_page(xch, &max_mfn) < 0 );
+    if ( xc_maximum_ram_page(xch, &max_mfn) < 0 )
     {
         ERROR("Failed to get the maximum mfn");
         return -1;
Signature · 1 line
1.7.10.4