net/qede/base: improve set field macro
authorRasesh Mody <rasesh.mody@cavium.com>
Thu, 5 Jan 2017 07:03:44 +0000 (23:03 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:40:52 +0000 (19:40 +0100)
commit830aba26d9bb920fff4ead9305a56d3951bcd937
tree1cd16b25dfc2524b5ffc2661779c81da593849bf
parent9e2f08a4ad5f952fdd87183dab31856d19ce8c0f
net/qede/base: improve set field macro

Improve robustness of the SET_FIELD macro by using a mask.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore.h