From: Dan Carpenter Date: Sat, 22 May 2010 10:43:42 +0000 (+0000) Subject: caif: remove unneeded null check in caif_connect() X-Git-Tag: v2.6.36-rc1~571^2~732 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5d72af9f3dfea67f014f880d00665f96622f57f;p=pandora-kernel.git caif: remove unneeded null check in caif_connect() We already dereferenced uaddr towards the start of the function when we checked that "uaddr->sa_family != AF_CAIF". Both the check here and the earlier check were added in bece7b2398d0: "caif: Rewritten socket implementation". Before that patch, we assumed that we recieved a valid pointer for uaddr, and based on that, I have removed this check. Signed-off-by: Dan Carpenter Acked-by: Sjur Braendeland Signed-off-by: David S. Miller --- Reading git-diff-tree failed