From: Dan Carpenter Date: Thu, 8 Dec 2011 06:50:54 +0000 (+0300) Subject: drm/ttm: fix condition (and vs or) X-Git-Tag: v3.3-rc1~121^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7920aa5a9d841fc7a10ff53a5a775f821d7a6ba1;p=pandora-kernel.git drm/ttm: fix condition (and vs or) The "if (!p && !p->dev)" condition isn't right because || was intended instead of &&. But actually, "p" is the list cursor and so it's always non-NULL and we can just remove that bit. We can remove the another similar check as well. Signed-off-by: Dan Carpenter Reviewed-by: Jerome Glisse Acked-by: Konrad Rzeszutek Wilk Signed-off-by: Dave Airlie --- Reading git-diff-tree failed