lkml.org 
[lkml]   [2021]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [PATCH 5.10 258/530] security: keys: trusted: fix TPM2 authorizations
    Hi!

    Clean up unreachable code.

    Signed-off-by: Pavel Machek (CIP) <pavel@denx.de>

    diff --git a/security/keys/trusted-keys/trusted_tpm1.c b/security/keys/trusted-keys/trusted_tpm1.c
    index 230c0b27b77d..5bae4ed73c4d 100644
    --- a/security/keys/trusted-keys/trusted_tpm1.c
    +++ b/security/keys/trusted-keys/trusted_tpm1.c
    @@ -813,11 +813,7 @@ static int getoptions(char *c, struct trusted_key_payload *pay,
    opt->blobauth_len);
    break;
    }
    -
    return -EINVAL;
    -
    - break;
    -
    case Opt_migratable:
    if (*args[0].from == '0')
    pay->migratable = 0;

    --
    DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
    HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2021-05-15 10:23    [W:2.091 / U:0.156 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site