mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
mm/alloc: remove all unnecessary cast for alloc
Fix the minor style issue and remove unnecessary cast Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -1350,7 +1350,7 @@ int pic32mx_tsc_setup(int minor)
|
||||
#ifndef CONFIG_TOUCHSCREEN_MULTIPLE
|
||||
priv = &g_touchscreen;
|
||||
#else
|
||||
priv = (struct tc_dev_s *)kmm_malloc(sizeof(struct tc_dev_s));
|
||||
priv = kmm_malloc(sizeof(struct tc_dev_s));
|
||||
if (!priv)
|
||||
{
|
||||
ierr("ERROR: kmm_malloc(%d) failed\n", sizeof(struct tc_dev_s));
|
||||
|
||||
Reference in New Issue
Block a user