libc: remove useless code in _prf()
Coverity reported a block of deadcode in _prf() that seems to be a leftover carcass from a previous time. Replaced with a comment in case someone decides it was needed back. Change-Id: Id97e84f3279f807e6188371f27f6af157e6d5038 Coverity-ID: 131631 Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
This commit is contained in:
parent
4d8c021820
commit
11a52750d3
1 changed files with 9 additions and 22 deletions
|
@ -520,28 +520,15 @@ int _prf(int (*func)(), void *dest, char *format, va_list vargs)
|
|||
if (strchr("hlLz", c) != NULL) {
|
||||
i = c;
|
||||
c = *format++;
|
||||
switch (i) {
|
||||
case 'h':
|
||||
if (strchr("diouxX", c) == NULL)
|
||||
break;
|
||||
break;
|
||||
|
||||
case 'l':
|
||||
if (strchr("diouxX", c) == NULL)
|
||||
break;
|
||||
break;
|
||||
|
||||
case 'L':
|
||||
if (strchr("eEfgG", c) == NULL)
|
||||
break;
|
||||
break;
|
||||
|
||||
case 'z':
|
||||
if (strchr("diouxX", c) == NULL)
|
||||
break;
|
||||
break;
|
||||
|
||||
}
|
||||
/*
|
||||
* Here there was a switch() block
|
||||
* which was doing nothing useful, I
|
||||
* am still puzzled at why it was left
|
||||
* over. Maybe before it contained
|
||||
* stuff that was needed, but in its
|
||||
* current form, it was being
|
||||
* optimized out.
|
||||
*/
|
||||
}
|
||||
|
||||
need_justifying = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue