From: Dan Carpenter Date: Tue, 6 Apr 2010 16:45:12 +0000 (+0300) Subject: dma-debug: Cleanup for copy-loop in filter_write() X-Git-Tag: v2.6.34-rc5~13^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39a37ce1cc5eef420604fa68b776ff5dab400340;p=pandora-kernel.git dma-debug: Cleanup for copy-loop in filter_write() Earlier in this function we set the last byte of "buf" to NULL so we always hit the break statement and "i" is never equal to NAME_MAX_LEN. This patch doesn't change how the driver works but it silences a Smatch warning and it makes it clearer that we don't write past the end of the array. Signed-off-by: Dan Carpenter Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed