aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2022-04-19 12:26:31 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2022-04-19 12:45:56 +0000
commitd37dca9ec9d0613ff962d6e63e1bd5c8f0418836 (patch)
tree038259a992dcafc51bceec1338150a4349978f69
parenta12d89332efe0b02307c580a6f3025652374cd47 (diff)
downloadsrc-d37dca9ec9d0613ff962d6e63e1bd5c8f0418836.tar.gz
src-d37dca9ec9d0613ff962d6e63e1bd5c8f0418836.zip
cxgbe: plug a set-but-not-used var
Sponsored by: Rubicon Communications, LLC ("Netgate")
-rw-r--r--sys/dev/cxgbe/tom/t4_cpl_io.c4
1 files changed, 1 insertions, 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