From: Dan Carpenter Date: Thu, 12 Aug 2010 07:59:58 +0000 (+0200) Subject: USB: uvc_v4l2: cleanup test for end of loop X-Git-Tag: v2.6.36-rc3~41^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a887162be81bd21ea8495e0a57b46ab1d77d205;p=pandora-kernel.git USB: uvc_v4l2: cleanup test for end of loop We're trying to test for the the end of the loop here. "format" is never NULL. We don't know what "format->fcc" is because we're past the end of the loop and I think "fmt->fmt.pix.pixelformat" comes from the user so we don't know what that is either. It works, but it's cleaner to just test to see if (i == ARRAY_SIZE(uvc_formats). Signed-off-by: Dan Carpenter Acked-by: Laurent Pinchart Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed