From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gyin3-0004Hj-De for barebox@lists.infradead.org; Tue, 26 Feb 2019 19:53:22 +0000 Received: by mail-pl1-x643.google.com with SMTP id y5so6730679plk.8 for ; Tue, 26 Feb 2019 11:53:21 -0800 (PST) From: Andrey Smirnov Date: Tue, 26 Feb 2019 11:53:02 -0800 Message-Id: <20190226195303.24733-5-andrew.smirnov@gmail.com> In-Reply-To: <20190226195303.24733-1-andrew.smirnov@gmail.com> References: <20190226195303.24733-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 5/6] fs: Drop unused code in fstat() To: barebox@lists.infradead.org Cc: Andrey Smirnov Signed-off-by: Andrey Smirnov --- fs/fs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index 65de82518..878a18e17 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -848,15 +848,12 @@ static void stat_inode(struct inode *inode, struct stat *s) int fstat(int fd, struct stat *s) { FILE *f; - struct fs_device_d *fsdev; if (check_fd(fd)) return -errno; f = &files[fd]; - fsdev = f->fsdev; - stat_inode(f->f_inode, s); return 0; -- 2.20.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox