CPU: [NetBSD] Remove case statement in favor of 1 line test

This commit is contained in:
Dylan Araps 2016-12-14 11:33:19 +11:00
parent fdc350f136
commit 5a6a3d7e5b

View file

@ -723,9 +723,7 @@ get_cpu() {
# NetBSD emulates the linux /proc filesystem instead of using sysctl for hw
# information so we have to use this block below which temporarily sets the
# OS to 'Linux' for the duration of this function.
case "$distro" in
"NetBSD"*) local os="Linux" ;;
esac
[[ "$distro" == "NetBSD"* ]] && local os="Linux"
case "$os" in
"Linux" | "Windows")