mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
mmc_xpt: Remove dubious end of mmc_print_ident
The end of this function finishes the passed in sbuf, calls printf manually on the contents, and then clears it. The caller then tries to print the resulting sbuf. This works currently but will not work for future callers that pass in an external sbuf to be appended to. Reviewed by: mav Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D41260
This commit is contained in:
parent
76b2e3907c
commit
32734eb14c
1 changed files with 0 additions and 4 deletions
|
|
@ -466,10 +466,6 @@ mmc_print_ident(struct mmc_params *ident_data, struct sbuf *sb)
|
|||
sbuf_printf(sb, "Number of functions: %u\n",
|
||||
ident_data->sdio_func_count);
|
||||
}
|
||||
|
||||
sbuf_finish(sb);
|
||||
printf("%s", sbuf_data(sb));
|
||||
sbuf_clear(sb);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue