diff mbox

[Xen-devel,29/34] xen/xsm: flask: ss: remove unused function determine_oocontext

Message ID 1395766541-23979-30-git-send-email-julien.grall@linaro.org
State Accepted, archived
Headers show

Commit Message

Julien Grall March 25, 2014, 4:55 p.m. UTC
This function is not used neither exported.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Cc: Daniel De Graaf <dgdegra@tycho.nsa.gov>
---
 xen/xsm/flask/ss/services.c |   14 --------------
 1 file changed, 14 deletions(-)

Comments

Daniel De Graaf March 25, 2014, 5:37 p.m. UTC | #1
On 03/25/2014 12:55 PM, Julien Grall wrote:
> This function is not used neither exported.
>
> Signed-off-by: Julien Grall <julien.grall@linaro.org>
> Cc: Daniel De Graaf <dgdegra@tycho.nsa.gov>

Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>

> ---
>   xen/xsm/flask/ss/services.c |   14 --------------
>   1 file changed, 14 deletions(-)
>
> diff --git a/xen/xsm/flask/ss/services.c b/xen/xsm/flask/ss/services.c
> index 59234ff..f0e459a 100644
> --- a/xen/xsm/flask/ss/services.c
> +++ b/xen/xsm/flask/ss/services.c
> @@ -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 )
>   {
>
diff mbox

Patch

diff --git a/xen/xsm/flask/ss/services.c b/xen/xsm/flask/ss/services.c
index 59234ff..f0e459a 100644
--- a/xen/xsm/flask/ss/services.c
+++ b/xen/xsm/flask/ss/services.c
@@ -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 )
 {