From 0810f18fce92afc827d5c7c1d4f146b72b8052d6 Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Tue, 12 May 2015 22:37:23 +0100 Subject: [PATCH] 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-format-patch failed