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
This commit is contained in:
Vladislav Bolkhovitin
2009-03-19 14:00:15 +00:00
parent 341f592a4a
commit 43ee898fa6

View File

@@ -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;