First of many fixes to come.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15248 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-12-24 10:39:15 +00:00
parent 7a34d5d52d
commit 8e60050444
2 changed files with 6 additions and 9 deletions

View File

@ -77,16 +77,13 @@
/* Module macros. */
/*===========================================================================*/
#define VFS_BREAK_ON_ERROR(err) do { \
if ((err) < VFS_RET_SUCCESS) { \
break; \
} \
} while (false)
#define VFS_BREAK_ON_ERROR(err) \
if ((err) < VFS_RET_SUCCESS) break
#define VFS_RETURN_ON_ERROR(err) do { \
msg_t ret = (err); \
if (ret < VFS_RET_SUCCESS) { \
return ret; \
msg_t __ret = (err); \
if (__ret < VFS_RET_SUCCESS) { \
return __ret; \
} \
} while (false)