From: Dan Carpenter Date: Thu, 9 Feb 2012 00:49:34 +0000 (+0000) Subject: bna: fix error handling of bnad_get_flash_partition_by_offset() X-Git-Tag: v3.3-rc4~34^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=027a3b617c5490b5287d98921675abcbebeb32df;p=pandora-kernel.git bna: fix error handling of bnad_get_flash_partition_by_offset() The current error handling doesn't work because we flash_part is a u32 so the checks for negative error codes don't work. I considered making things signed but I don't know the hardware enough to say if that's a problem. Really, we don't use the error codes so just returning zero for all problems is fine. Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- Reading git-diff-tree failed