• David Howells's avatar
    rxrpc: Fix checker warning · 84924aac
    David Howells authored
    
    
    Fix the following checker warning:
    
    ../net/rxrpc/key.c:692:9: error: subtraction of different types can't work (different address spaces)
    
    Checker is wrong in this case, but cast the pointers to unsigned long to
    avoid the warning.
    
    Whilst we're at it, reduce the assertions to WARN_ON() and return an error.
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    cc: Marc Dionne <marc.dionne@auristor.com>
    cc: linux-afs@lists.infradead.org
    84924aac
key.c 16.4 KB