Commit fc8e57f6 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Eliminate a unused field in struct sess

parent 3a22b09f
...@@ -659,7 +659,6 @@ struct sess { ...@@ -659,7 +659,6 @@ struct sess {
enum sess_step sess_step; enum sess_step sess_step;
struct lock mtx; struct lock mtx;
int fd; int fd;
enum sess_close reason;
uint32_t vxid; uint32_t vxid;
/* Cross references ------------------------------------------*/ /* Cross references ------------------------------------------*/
......
...@@ -365,7 +365,6 @@ SES_Close(struct sess *sp, enum sess_close reason) ...@@ -365,7 +365,6 @@ SES_Close(struct sess *sp, enum sess_close reason)
int i; int i;
assert(sp->fd >= 0); assert(sp->fd >= 0);
sp->reason = reason;
i = close(sp->fd); i = close(sp->fd);
assert(i == 0 || errno != EBADF); /* XXX EINVAL seen */ assert(i == 0 || errno != EBADF); /* XXX EINVAL seen */
sp->fd = -1; sp->fd = -1;
...@@ -397,7 +396,7 @@ SES_Delete(struct sess *sp, enum sess_close reason, double now) ...@@ -397,7 +396,7 @@ SES_Delete(struct sess *sp, enum sess_close reason, double now)
assert(VTAILQ_EMPTY(&sp->privs->privs)); assert(VTAILQ_EMPTY(&sp->privs->privs));
VSL(SLT_SessClose, sp->vxid, "%s %.3f", VSL(SLT_SessClose, sp->vxid, "%s %.3f",
sess_close_2str(sp->reason, 0), now - sp->t_open); sess_close_2str(reason, 0), now - sp->t_open);
VSL(SLT_End, sp->vxid, "%s", ""); VSL(SLT_End, sp->vxid, "%s", "");
Lck_Delete(&sp->mtx); Lck_Delete(&sp->mtx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment