crypto: Remove duplicate code of SG helpers functions

From: LABBE Corentin
Date: Thu Sep 10 2015 - 09:21:53 EST



Hello

This patch series try to remove some duplicate code of some SG helpers functions.
The first three patch replace custom functions by already in-tree helper functions.

The fourth add a new functions "sg_nents_for_len2" who is the same as
sg_nents_for_len with an additionnal arguments.
Note that I do not like the name, but I do not find any good name.

The last three patch use sg_nents_for_len2 for removing custom functions.

I send those patch as RFC since I do not own any of those hardware to test.

Regards

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/