From: Ken Cox Date: Mon, 17 Mar 2014 15:37:11 +0000 (-0500) Subject: Staging: unisys: visorutil: Clean up sparse warnings in visorutil code X-Git-Tag: v3.15-rc1~139^2~178 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7710336596ecf49b3c1572dd40f4ecfefc6c9ab;p=pandora-kernel.git Staging: unisys: visorutil: Clean up sparse warnings in visorutil code Clean up code to get rid of sparse warnings. Also fixed variable length arrays declared on the stack by removing visor_hexDumpToBuffer() and using hex_dump_to_buffer() instead. Signed-off-by: Ken Cox Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/include/timskmodutils.h b/drivers/staging/unisys/include/timskmodutils.h index ea0ec49f6ac7..2d81d46bf11e 100644 --- a/drivers/staging/unisys/include/timskmodutils.h +++ b/drivers/staging/unisys/include/timskmodutils.h @@ -24,28 +24,6 @@ void *kmalloc_kernel(size_t siz); void myprintk(const char *myDrvName, const char *devname, const char *template, ...); -/** Print the hexadecimal contents of a data buffer to a supplied print buffer. - * @param dest the print buffer where text characters will be - * written - * @param destSize the maximum number of bytes that can be written - * to #dest - * @param src the buffer that contains the data that is to be - * hex-dumped - * @param srcLen the number of bytes at #src to be hex-dumped - * @param bytesToDumpPerLine output will be formatted such that at most this - * many of the input data bytes will be represented - * on each line of output - * @return the number of text characters written to #dest - * (not including the trailing '\0' byte) - * @ingroup internal - */ -int visor_hexDumpToBuffer(char *dest, - int destSize, - char *prefix, - char *src, - int srcLen, - int bytesToDumpPerLine); - /*--------------------------------* *--- GENERAL MESSAGEQ STUFF ---* *--------------------------------*/ Reading git-diff-tree failed