Fix checkpatch issue - ERROR:ASSIGN_IN_IF
Assignment in if condition should be avoided. The source code is restructured to have the assignment outside the if condition. Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com> Change-Id: I9e3e1d069657d3ce9f54e1f4b4b74163c724a733 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
adf4739424
commit
ef7e799909
1 changed files with 2 additions and 1 deletions
|
|
@ -622,7 +622,8 @@ int _prf(int (*func)(), void *dest, char *format, va_list vargs)
|
||||||
width = MAXFLD;
|
width = MAXFLD;
|
||||||
|
|
||||||
if (c == '.') {
|
if (c == '.') {
|
||||||
if ((c = *format++) == '*') {
|
c = *format++;
|
||||||
|
if (c == '*') {
|
||||||
precision = (int32_t)
|
precision = (int32_t)
|
||||||
va_arg(vargs, int32_t);
|
va_arg(vargs, int32_t);
|
||||||
} else
|
} else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue