commit | 3a5352fc9d316fe1be18daf80571e80805e06f11 | [log] [tgz] |
---|---|---|
author | Tomas Winkler <tomas.winkler@intel.com> | Sun Dec 04 16:16:27 2011 +0200 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Thu Dec 08 15:00:44 2011 -0800 |
tree | 4023316df7c0c410748c9a27cf3b50e49738858e | |
parent | 91762057f439bb0adb33ca857b6022fda4b1fd69 [diff] |
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>