Skip to content

Commit

Permalink
fs_rammap.c: fix Coding Style Check Failed
Browse files Browse the repository at this point in the history
fs/mmap/fs_rammap.c:268:79: error: Long line found

Signed-off-by: zhangshoukui <[email protected]>
  • Loading branch information
Zhangshoukui authored and crafcat7 committed Sep 29, 2024
1 parent c2476a9 commit f7c5f0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/mmap/fs_rammap.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ int rammap(FAR struct file *filep, FAR struct mm_map_entry_s *entry,

/* Allocate a region of memory of the specified size */

rdbuffer = type == MAP_KERNEL ? fs_heap_malloc(length) : kumm_malloc(length);
rdbuffer = type == MAP_KERNEL ? fs_heap_malloc(length)
: kumm_malloc(length);
if (!rdbuffer)
{
ferr("ERROR: Region allocation failed, length: %zu\n", length);
Expand Down

0 comments on commit f7c5f0b

Please sign in to comment.