Remove dead store.

sw_flags is set to the function argument several lines later.

Reported by:	danfe using PVS-studio
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
kib 2019-06-03 15:19:11 +00:00
parent be37a4f410
commit d01905837c

View File

@ -2230,7 +2230,6 @@ swaponsomething(struct vnode *vp, void *id, u_long nblks,
sp->sw_vp = vp;
sp->sw_id = id;
sp->sw_dev = dev;
sp->sw_flags = 0;
sp->sw_nblks = nblks;
sp->sw_used = 0;
sp->sw_strategy = strategy;