xsm: flask: ss: remove unused function determine_oocontext
authorJulien Grall <julien.grall@linaro.org>
Wed, 26 Mar 2014 14:32:49 +0000 (15:32 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 26 Mar 2014 14:32:49 +0000 (15:32 +0100)
This function is not used neither exported.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
xen/xsm/flask/ss/services.c

index 59234ff3e605c273eb6e68b8a21965e0cacfd615..f0e459ae650e16c6777c623b0255e99ae1ef2373 100644 (file)
@@ -2035,20 +2035,6 @@ out:
     return rc;
 }
 
-int determine_ocontext( char *ocontext )
-{
-    if ( strcmp(ocontext, "pirq") == 0 )
-        return OCON_PIRQ;
-    else if ( strcmp(ocontext, "ioport") == 0 )
-        return OCON_IOPORT;
-    else if ( strcmp(ocontext, "iomem") == 0 )
-        return OCON_IOMEM;
-    else if ( strcmp(ocontext, "pcidevice") == 0 )
-        return OCON_DEVICE;
-    else
-        return -1;
-}
-
 int security_ocontext_add( u32 ocon, unsigned long low, unsigned long high
                             ,u32 sid )
 {