From 43ee898fa6d1b6508962379fe0e8129c700d94c1 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 19 Mar 2009 14:00:15 +0000 Subject: [PATCH] Remove sg_init_one() definition, because it was added in the kernel prior 2.6.16. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@703 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/scst/include/scst.h b/scst/include/scst.h index c942761fe..495c5666a 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -2571,13 +2571,6 @@ static inline void sg_init_table(struct scatterlist *sgl, unsigned int nents) memset(sgl, 0, sizeof(*sgl) * nents); } -static inline void sg_init_one(struct scatterlist *sg, const void *buf, - unsigned int buflen) -{ - sg_init_table(sg, 1); - sg_set_buf(sg, buf, buflen); -} - static inline void sg_assign_page(struct scatterlist *sg, struct page *page) { sg->page = page;