diff options
author | Dan Carpenter <error27@gmail.com> | 2010-04-06 19:45:12 +0300 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2010-04-07 14:36:27 +0200 |
commit | 39a37ce1cc5eef420604fa68b776ff5dab400340 (patch) | |
tree | 6303b715525daaefbc5b2ced63a1e697d47667a1 /arch/x86/kernel/aperture_64.c | |
parent | 12ff4bf58b64ad3b8fb8e27889c99dcd5aa6fb0b (diff) | |
download | linux-39a37ce1cc5eef420604fa68b776ff5dab400340.tar.gz linux-39a37ce1cc5eef420604fa68b776ff5dab400340.tar.bz2 linux-39a37ce1cc5eef420604fa68b776ff5dab400340.zip |
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 <error27@gmail.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/kernel/aperture_64.c')
0 files changed, 0 insertions, 0 deletions