mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-14 04:54:37 +03:00
Remove needless allocation error conditions
These allocations were converted to use xMalloc et al. and no longer need error checks.
This commit is contained in:
@ -265,9 +265,6 @@ void Platform_setSwapValues(Meter* this) {
|
||||
}
|
||||
|
||||
swdev = xCalloc(nswap, sizeof(*swdev));
|
||||
if (swdev == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
rnswap = swapctl(SWAP_STATS, swdev, nswap);
|
||||
if (rnswap == -1) {
|
||||
|
Reference in New Issue
Block a user