be2net: simplify UFI compatibility checking
authorVasundhara Volam <vasundhara.volam@avagotech.com>
Wed, 6 May 2015 09:30:37 +0000 (05:30 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 May 2015 20:27:03 +0000 (16:27 -0400)
commita6e6ff6eee12f3edc7630e81993bf880a4f0d340
tree959c2d9a29b8337fbe72281c6192c48a593825b0
parentb02e60c86eac4451543f3d2c695545baf093e9ea
be2net: simplify UFI compatibility checking

The code in be_check_ufi_compatibility() checks to see if a UFI file meant
for a lower rev of a chip is being flashed on a higher rev, which is
disallowed. This patch re-writes the code needed for this check in a much
simpler manner.

Signed-off-by: Vasundhara Volam <vasundhara.volam@avagotech.com>
Signed-off-by: Sathya Perla <sathya.perla@avagotech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.h
drivers/net/ethernet/emulex/benet/be_main.c