ti-soc-thermal: Delete error messages for failed memory allocations in ti_bandgap_build()

The script "checkpatch.pl" pointed information out like the following.

WARNING: Possible unnecessary 'out of memory' message

Thus remove such statements here.

Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf
Acked-by: Keerthy <j-keerthy@ti.com>
Tested-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>

authored by Markus Elfring and committed by Eduardo Valentin 57e52115 748c23d8

Changed files
+2 -6
drivers
thermal
ti-soc-thermal
+2 -6
drivers/thermal/ti-soc-thermal/ti-bandgap.c
··· 1214 1214 } 1215 1215 1216 1216 bgp = devm_kzalloc(&pdev->dev, sizeof(*bgp), GFP_KERNEL); 1217 - if (!bgp) { 1218 - dev_err(&pdev->dev, "Unable to allocate mem for driver ref\n"); 1217 + if (!bgp) 1219 1218 return ERR_PTR(-ENOMEM); 1220 - } 1221 1219 1222 1220 of_id = of_match_device(of_ti_bandgap_match, &pdev->dev); 1223 1221 if (of_id) ··· 1224 1226 /* register shadow for context save and restore */ 1225 1227 bgp->regval = devm_kcalloc(&pdev->dev, bgp->conf->sensor_count, 1226 1228 sizeof(*bgp->regval), GFP_KERNEL); 1227 - if (!bgp->regval) { 1228 - dev_err(&pdev->dev, "Unable to allocate mem for driver ref\n"); 1229 + if (!bgp->regval) 1229 1230 return ERR_PTR(-ENOMEM); 1230 - } 1231 1231 1232 1232 i = 0; 1233 1233 do {