staging/mei: Don't check if loop cursor is null
commit3a5352fc9d316fe1be18daf80571e80805e06f11
authorTomas Winkler <tomas.winkler@intel.com>
Sun, 4 Dec 2011 14:16:27 +0000 (4 16:16 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 8 Dec 2011 23:00:44 +0000 (8 15:00 -0800)
tree4023316df7c0c410748c9a27cf3b50e49738858e
parent91762057f439bb0adb33ca857b6022fda4b1fd69
staging/mei: Don't check if loop cursor is null

list_for_each_entry_safe(pos, next, &head, list)
if (pos) {
....
}

This check isn't needed.  The list cursor in a list_for_each()
loop is always a valid pointer

Cc: Oren Weil <oren.jer.weil@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/mei/init.c