git: sys/dev/disk/dm: Remove default:break for switch enums on kldload
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sat Oct 1 15:02:04 PDT 2016
commit 2ca885947e0db8ea30fa720049322079657b1c6c
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Sun Oct 2 06:20:55 2016 +0900
sys/dev/disk/dm: Remove default:break for switch enums on kldload
This could be reverted as compilers may warn if not all enum elements
are covered, but some dm targets don't have default case on loading,
and it's been working. Compiles with LINT64.
Summary of changes:
sys/dev/disk/dm/device-mapper.c | 3 ---
sys/dev/disk/dm/dm_target_error.c | 3 ---
sys/dev/disk/dm/dm_target_zero.c | 3 ---
sys/dev/disk/dm/targets/crypt/dm_target_crypt.c | 3 ---
sys/dev/disk/dm/targets/linear/dm_target_linear.c | 3 ---
sys/dev/disk/dm/targets/striped/dm_target_striped.c | 3 ---
6 files changed, 18 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2ca885947e0db8ea30fa720049322079657b1c6c
--
DragonFly BSD source repository
More information about the Commits
mailing list