From: David Howells Date: Tue, 15 May 2012 13:11:11 +0000 (+0100) Subject: KEYS: Don't check for NULL key pointer in key_validate() X-Git-Tag: v3.5-rc1~161^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b404aef72fdafb601c945c714164c0ee2b04c364;p=pandora-kernel.git KEYS: Don't check for NULL key pointer in key_validate() Don't bother checking for NULL key pointer in key_validate() as all of the places that call it will crash anyway if the relevant key pointer is NULL by the time they call key_validate(). Therefore, the checking must be done prior to calling here. Whilst we're at it, simplify the key_validate() function a bit and mark its argument const. Reported-by: Dan Carpenter Signed-off-by: David Howells cc: Dan Carpenter Signed-off-by: James Morris --- Reading git-diff-tree failed