mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
MFP4 change 219819
Remove a duplicate computation of C_SIZE_MULT. Once is sufficient. Sponsored by: DARPA, AFRL
This commit is contained in:
parent
4b21c8fda9
commit
9f9f029919
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245818
@ -93,13 +93,6 @@ altera_sdcard_process_csd0(struct altera_sdcard_softc *sc)
|
||||
read_bl_len = sc->as_csd.csd_data[ALTERA_SDCARD_CSD_READ_BL_LEN_BYTE];
|
||||
read_bl_len &= ALTERA_SDCARD_CSD_READ_BL_LEN_MASK;
|
||||
|
||||
byte0 = sc->as_csd.csd_data[ALTERA_SDCARD_CSD_C_SIZE_MULT_BYTE0];
|
||||
byte0 &= ALTERA_SDCARD_CSD_C_SIZE_MULT_MASK0;
|
||||
byte1 = sc->as_csd.csd_data[ALTERA_SDCARD_CSD_C_SIZE_MULT_BYTE1];
|
||||
byte1 &= ALTERA_SDCARD_CSD_C_SIZE_MULT_MASK1;
|
||||
c_size_mult = (byte0 >> ALTERA_SDCARD_CSD_C_SIZE_MULT_RSHIFT0) |
|
||||
(byte0 << ALTERA_SDCARD_CSD_C_SIZE_MULT_LSHIFT1);
|
||||
|
||||
byte0 = sc->as_csd.csd_data[ALTERA_SDCARD_CSD_C_SIZE_BYTE0];
|
||||
byte0 &= ALTERA_SDCARD_CSD_C_SIZE_MASK0;
|
||||
byte1 = sc->as_csd.csd_data[ALTERA_SDCARD_CSD_C_SIZE_BYTE1];
|
||||
|
Loading…
Reference in New Issue
Block a user