mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
lightnvm: pblk: refactor pblk_ppa_comp function
Shorten function to simply return the value of the if statement. Signed-off-by: Matias Bjørling <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
998ba62973
commit
8b7bc84988
1 changed files with 1 additions and 4 deletions
|
|
@ -1047,10 +1047,7 @@ static inline void pblk_ppa_set_empty(struct ppa_addr *ppa_addr)
|
|||
|
||||
static inline bool pblk_ppa_comp(struct ppa_addr lppa, struct ppa_addr rppa)
|
||||
{
|
||||
if (lppa.ppa == rppa.ppa)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return (lppa.ppa == rppa.ppa);
|
||||
}
|
||||
|
||||
static inline int pblk_addr_in_cache(struct ppa_addr ppa)
|
||||
|
|
|
|||
Loading…
Reference in a new issue