From: Tomas Winkler Date: Sun, 27 Nov 2011 19:43:34 +0000 (+0200) Subject: staging/mei: don't check if list is empty before looping X-Git-Tag: v3.3-rc1~152^2~101^2~184 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7cd2d9fdc0185e0f4fede78f2a040c5f7c5a179;p=pandora-kernel.git staging/mei: don't check if list is empty before looping 1. No need to check if a list is empty before list_for_each_ looping as this is already checked by loop stopping conditional. The side effect is reduced indentation depth from: if (!list_empty) list_for_each() to: list_for_each() 2. drop cb_ prefix from cl_pos, cl_next variables used in list_for_each loops. The code is more compact and readable Signed-off-by: Tomas Winkler Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed