From: H Hartley Sweeten Date: Mon, 29 Jul 2013 21:07:53 +0000 (-0700) Subject: staging: comedi: das16: tidy up user ai/ao range initialization X-Git-Tag: v3.12-rc1~183^2~416 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05591eaf71a9c2ad57e2d59a398ade423a9bda00;p=pandora-kernel.git staging: comedi: das16: tidy up user ai/ao range initialization The allocation of the user range tables could fail. Make sure to check for it. Change the kmalloc()'s to kzalloc()'s to make sure the allocated range tables are initialized to a known state. Change the local variables so they can be used for both the ai and ao range initialization and use shorter names to keep the lines < 80 chars. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed