# Re: net: rnpgbe: Pass an expression directly in rnpgbe\_rm\_adapter()

- From: Markus Elfring \<hidden\>
- Date: 2026-07-13 06:01:08 
- List: netdev
- Page: https://ratatoskr.run/netdev/2026/07/17249541
- Thread: https://ratatoskr.run/netdev/2026/07/17248490/t.md

```text
>> The address of a data structure member was determined before
>> a corresponding null pointer check in the implementation of
>> the function “rnpgbe_rm_adapter”.
> 
> The null check in rnpgbe_rm_adapter() looks more like defensive
> programming,

This can be fine, can't it?


>              which got into the code unnoticed.

Some patch reviews happened accordingly.


>                                                 pdev will not exist if
> netdev is not allocated, where mucse is netdev private data.

Would you like to reconsider the relevance of another null pointer check?

Regards,
Markus

```
