Skip to content

Cellular: Remove unnecessary local variables #11149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2019

Conversation

mirelachirica
Copy link
Contributor

@mirelachirica mirelachirica commented Aug 1, 2019

Description

Removes unnecessary local variables.

Pull request type

[ ] Fix
[*] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@AriParkkila

strncpy(pdp_type_str, "Non-IP", sizeof(pdp_type_str));
pdp_type = NON_IP_PDP_TYPE;
} else if (modem_supports_ipv6 && modem_supports_ipv4) {
} else if (get_property(PROPERTY_IPV4V6_PDP_TYPE)) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's good to add here that IPV4V6, but should also be IPV4 & IPV6 for single stack support.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a target doesn't mark as supported the IPV4V6 feature but it has IPV4 and IPV6 support, I think we should consider it as it doesnt support IPV4V6. Why else wouldnt have it set accordingly?

@ciarmcom ciarmcom requested review from AriParkkila and a team August 1, 2019 13:00
@ciarmcom
Copy link
Member

ciarmcom commented Aug 1, 2019

@mirelachirica, thank you for your changes.
@AriParkkila @ARMmbed/mbed-os-wan @ARMmbed/mbed-os-maintainers please review.

@mbed-ci
Copy link

mbed-ci commented Aug 5, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants