[PATCH 06/12] drm: fix __alpha__ PCI lookup

2014-07-23 Thread Daniel Vetter
On Wed, Jul 23, 2014 at 09:29:48PM +0200, Daniel Vetter wrote: > On Wed, Jul 23, 2014 at 05:26:41PM +0200, David Herrmann wrote: > > Testing the return value of list_entry() for NULL is a no-op (as it is > > just a fancy container_of() / offsetof()). Drop the superfluous if-clause > > and instead v

[PATCH 06/12] drm: fix __alpha__ PCI lookup

2014-07-23 Thread Daniel Vetter
On Wed, Jul 23, 2014 at 05:26:41PM +0200, David Herrmann wrote: > Testing the return value of list_entry() for NULL is a no-op (as it is > just a fancy container_of() / offsetof()). Drop the superfluous if-clause > and instead verify the actual root-node is available. This is probably > what it was

[PATCH 06/12] drm: fix __alpha__ PCI lookup

2014-07-23 Thread David Herrmann
Testing the return value of list_entry() for NULL is a no-op (as it is just a fancy container_of() / offsetof()). Drop the superfluous if-clause and instead verify the actual root-node is available. This is probably what it was meant to test for from the beginning, anyway. Signed-off-by: David Her