mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +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:
@@ -905,7 +905,7 @@ static int telnet_session(FAR struct telnet_session_s *session)
|
||||
|
||||
/* Allocate instance data for this driver */
|
||||
|
||||
priv = (FAR struct telnet_dev_s *)kmm_zalloc(sizeof(struct telnet_dev_s));
|
||||
priv = kmm_zalloc(sizeof(struct telnet_dev_s));
|
||||
if (!priv)
|
||||
{
|
||||
nerr("ERROR: Failed to allocate the driver data structure\n");
|
||||
|
||||
Reference in New Issue
Block a user