From 6d423eb2cb9bc2fd1aa22d71511775eb7acb8fa5 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 13 Jun 2018 17:42:50 +0000 Subject: [PATCH] Remove unused variables. Sponsored by: Netflix --- stand/libsa/tftp.c | 1 - stand/libsa/ufs.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/stand/libsa/tftp.c b/stand/libsa/tftp.c index fb58202a5ad1..e8bde5ab7bcb 100644 --- a/stand/libsa/tftp.c +++ b/stand/libsa/tftp.c @@ -186,7 +186,6 @@ recvtftp(struct iodesc *d, void **pkt, void **payload, time_t tleft, struct tftprecv_extra *extra; struct tftp_handle *h; struct tftphdr *t; - unsigned short *rtype; void *ptr = NULL; ssize_t len; diff --git a/stand/libsa/ufs.c b/stand/libsa/ufs.c index a0166acf536b..204bc969f968 100644 --- a/stand/libsa/ufs.c +++ b/stand/libsa/ufs.c @@ -506,8 +506,7 @@ ufs_open(upath, f) ino_t inumber, parent_inumber; struct file *fp; struct fs *fs; - int i, rc; - size_t buf_size; + int rc; int nlinks = 0; char namebuf[MAXPATHLEN+1]; char *buf = NULL;