]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: fix condition (and vs or)
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 8 Dec 2011 06:50:54 +0000 (09:50 +0300)
committerDave Airlie <airlied@redhat.com>
Tue, 10 Jan 2012 10:00:42 +0000 (10:00 +0000)
commitb206131447b4a9be893a7949c7ef736a8d070a37
tree4604bbb97b3f0a69b5921aa71b804d0c71e9aa98
parent30af6065d543369ca9dc4263fbb669817b6c69a1
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 <dan.carpenter@oracle.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_page_alloc_dma.c