git: d37dca9ec9d0 - main - cxgbe: plug a set-but-not-used var
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 19 Apr 2022 12:46:05 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=d37dca9ec9d0613ff962d6e63e1bd5c8f0418836 commit d37dca9ec9d0613ff962d6e63e1bd5c8f0418836 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2022-04-19 12:26:31 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2022-04-19 12:45:56 +0000 cxgbe: plug a set-but-not-used var Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/cxgbe/tom/t4_cpl_io.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/cxgbe/tom/t4_cpl_io.c b/sys/dev/cxgbe/tom/t4_cpl_io.c index 4c8b1fa27579..130c2468b20b 100644 --- a/sys/dev/cxgbe/tom/t4_cpl_io.c +++ b/sys/dev/cxgbe/tom/t4_cpl_io.c @@ -2192,7 +2192,6 @@ static void t4_aiotx_process_job(struct toepcb *toep, struct socket *so, struct kaiocb *job) { struct sockbuf *sb; - struct file *fp; struct inpcb *inp; struct tcpcb *tp; struct mbuf *m; @@ -2201,11 +2200,10 @@ t4_aiotx_process_job(struct toepcb *toep, struct socket *so, struct kaiocb *job) sb = &so->so_snd; SOCKBUF_UNLOCK(sb); - fp = job->fd_file; m = NULL; #ifdef MAC - error = mac_socket_check_send(fp->f_cred, so); + error = mac_socket_check_send(job->fd_file->f_cred, so); if (error != 0) goto out; #endif