mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00: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:
parent
db13d5e24c
commit
664927c86e
333 changed files with 485 additions and 566 deletions
|
|
@ -930,8 +930,7 @@ int audio_register(FAR const char *name, FAR struct audio_lowerhalf_s *dev)
|
|||
|
||||
/* Allocate the upper-half data structure */
|
||||
|
||||
upper = (FAR struct audio_upperhalf_s *)kmm_zalloc(
|
||||
sizeof(struct audio_upperhalf_s));
|
||||
upper = kmm_zalloc(sizeof(struct audio_upperhalf_s));
|
||||
if (!upper)
|
||||
{
|
||||
auderr("ERROR: Allocation failed\n");
|
||||
|
|
|
|||
|
|
@ -1388,7 +1388,7 @@ FAR struct audio_lowerhalf_s *
|
|||
|
||||
/* Allocate an instance of our private data structure */
|
||||
|
||||
priv = (FAR struct pcm_decode_s *)kmm_zalloc(sizeof(struct pcm_decode_s));
|
||||
priv = kmm_zalloc(sizeof(struct pcm_decode_s));
|
||||
if (!priv)
|
||||
{
|
||||
auderr("ERROR: Failed to allocate driver structure\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue