diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2010-12-11 05:53:47 +0000 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2010-12-24 21:31:49 -0800 |
commit | b1cdfead0e532d7614b5d5b97044df94cc8945ae (patch) | |
tree | 921241c8bac9f03705965a82daf3256cc8033d8d /drivers/net/e1000e/ich8lan.c | |
parent | 6480641eb741cabbba8e196d4f17db7fb80d101c (diff) | |
download | linux-b1cdfead0e532d7614b5d5b97044df94cc8945ae.tar.gz linux-b1cdfead0e532d7614b5d5b97044df94cc8945ae.tar.bz2 linux-b1cdfead0e532d7614b5d5b97044df94cc8945ae.zip |
e1000e: checkpatch warnings - braces
WARNING: braces {} are not necessary for any arm of this statement
WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/e1000e/ich8lan.c')
-rw-r--r-- | drivers/net/e1000e/ich8lan.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/e1000e/ich8lan.c b/drivers/net/e1000e/ich8lan.c index 5080372b0fd7..d86cc0832720 100644 --- a/drivers/net/e1000e/ich8lan.c +++ b/drivers/net/e1000e/ich8lan.c @@ -2309,11 +2309,10 @@ static s32 e1000_read_flash_data_ich8lan(struct e1000_hw *hw, u32 offset, */ if (ret_val == 0) { flash_data = er32flash(ICH_FLASH_FDATA0); - if (size == 1) { + if (size == 1) *data = (u8)(flash_data & 0x000000FF); - } else if (size == 2) { + else if (size == 2) *data = (u16)(flash_data & 0x0000FFFF); - } break; } else { /* |