staging: wilc1000: use GENMASK to extract wid type

Refactor code by make use of 'GENMASK' to extract the WID type from
buffer received from firmware.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Link: https://lore.kernel.org/r/20191122205153.30723-4-adham.abozaeid@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Ajay Singh 2019-11-22 20:52:05 +00:00 • committed by Greg Kroah-Hartman
commit baf3f2f9d0
2 changed files with 5 additions and 4 deletions