From: Colin Ian King Date: Tue, 12 May 2015 21:37:23 +0000 (+0100) Subject: ti-st: handle null allocation return correctly. X-Git-Tag: omap-for-v4.3/legacy-v2-signed~123^2~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0810f18fce92afc827d5c7c1d4f146b72b8052d6;p=pandora-kernel.git ti-st: handle null allocation return correctly. static analysis with smatch picked up the following error: get_platform_data() error: potential null dereference 'dt_pdata'. (kzalloc returns null) Instead, the code should return NULL to avoid the following null pointer deference. Also, remove the error message as it is redundant, the caller emits an error message to alert of a failure anyhow. Signed-off-by: Colin Ian King Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed