1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Fix warning when compiling with gcc46:

error: variable 'len' set but not used

Approved by:	dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after:	3 days
This commit is contained in:
Eitan Adler 2012-01-20 01:37:49 +00:00
parent e3febf407d
commit 2bb133e752
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230349

View File

@ -585,7 +585,7 @@ iov2physical(struct datalink *dl, struct iovec *iov, int *niov, int maxiov,
int fd, int *auxfd, int *nauxfd)
{
struct physical *p;
int len, type;
int type;
unsigned h;
p = (struct physical *)iov[(*niov)++].iov_base;
@ -598,7 +598,6 @@ iov2physical(struct datalink *dl, struct iovec *iov, int *niov, int maxiov,
p->desc.Write = physical_DescriptorWrite;
p->type = PHYS_DIRECT;
p->dl = dl;
len = strlen(_PATH_DEV);
p->out = NULL;
p->connect_count = 1;