]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Refactor error handling
authorkibab <kibab@FreeBSD.org>
Mon, 1 Apr 2019 18:54:15 +0000 (18:54 +0000)
committerkibab <kibab@FreeBSD.org>
Mon, 1 Apr 2019 18:54:15 +0000 (18:54 +0000)
commita38810c90651049423ed73e72e2f01399968a06b
tree7a438d48a87e0cd213f7ab2aa649f57bfb3ce96c
parent10ac8498c5264ee84de6be14366f24fbecb7a4eb
Refactor error handling

There is some code duplication in error handling paths in a few functions.
Create a function for printing such errors in human-readable way and get rid
of duplicates.

Approved by: imp (mentor)
Differential Revision: https://reviews.freebsd.org/D15912
sys/cam/mmc/mmc_da.c