lkml.org 
[lkml]   [2011]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Subjectdrivers/crypto/picoxcell_crypto.c: boolean and / or confusion
    From
    Date
    On Tue, 2011-12-13 at 00:06 +0100, roel wrote:
    > The test not [val1] or not [val2] always evaluates to true

    Hey Jamie and Roel

    Looking at drivers with:

    $ grep -rP --include=*.[ch] "(\b[\w\[\]\>\._\-]+)\s*\!\=\s*[\w\[\]\>\._\-]+\s*\|\|\s*\1\s*\!\=" drivers

    drivers/crypto/picoxcell_crypto.c: if ((len != AES_KEYSIZE_128 || len != AES_KEYSIZE_256) &&
    drivers/crypto/picoxcell_crypto.c: } else if ((len != AES_KEYSIZE_128 || len != AES_KEYSIZE_256) &&

    Most likely these should be && not ||.



    \
     
     \ /
      Last update: 2011-12-13 00:47    [W:0.017 / U:90.068 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site