From: H Hartley Sweeten Date: Fri, 7 Mar 2014 20:40:55 +0000 (-0700) Subject: staging: comedi: jr3_pci: tidy up subdevice init X-Git-Tag: v3.15-rc1~139^2~320 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=050389f5eb81180410f3033306c5f7d9f7f362a8;p=pandora-kernel.git staging: comedi: jr3_pci: tidy up subdevice init For aesthetics, use a pointer to the comedi_subdevice instead of accessing the dev->subdevices array directly. Move the local variable for the subdevice private data so that this function does not declare the variable twice. Change the kzalloc for the subdevice private data to remove the sizeof(struct foo). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed