ALDRICH, Acting P. J.
Defendant and appellant Michael Hayes appeals from a judgment imposing a previously suspended seven-year sentence. We modify the judgment to strike a one-year term imposed under Penal Code section 12022, subdivision (a)(1)
On January 27, 2014, Hayes and an accomplice robbed a medical marijuana dispensary. The accomplice used a gun. Hayes struck one victim, rendering him unconscious. Based on these events, a felony complaint was filed on January 29, 2014 alleging that Hayes committed two counts of second degree robbery (§ 211) and two counts of false imprisonment by violence (§ 236).
A new complaint alleging one count of possessing marijuana for sale (Health & Saf. Code, § 11359) was filed on February 4, 2015. At the preliminary hearing on the new charge, Officer Bernardo Barajas testified that, on January 9, 2015, he saw Hayes engage in a hand-to-hand transaction with another man. The officer detained Hayes, who had three individually packaged bindles containing 10 grams of marijuana and $306 in cash. Hayes, after being given his Miranda
On May 26, 2015, the previously suspended seven-year sentence was then imposed. He was given 438 days of custody credit. Hayes was ordered to pay a $300 restitution fine (§ 1202.4); a $300 parole revocation fine, suspended (§ 1202.45); a $40 court security fee (§ 1465.8); and a $30 per count assessment fine (Gov. Code, § 70373).
Hayes's counsel filed an opening brief under People v. Wende (1979) 25 Cal.3d 436, 441. After we requested briefing on the propriety of imposing a one-year term on a gun enhancement that was neither alleged nor admitted by Hayes, Hayes submitted supplemental briefing arguing that the one-year term should be stricken, and the People submitted a brief agreeing.
Due process requires a defendant be given notice of the charges and enhancements against him. (People v. Jones (1990) 51 Cal.3d 294, 317; People v. Mitchell (2011) 197 Cal.App.4th 1009, 1018.) Because the gun enhancement was never, on this record, alleged against Hayes and he did not admit it, we modify the order by striking the one-year term imposed under section 12022, subdivision (a)(1). (Mitchell, at pp. 1016-1017 [striking sentence imposed on an enhancement never alleged or admitted].)
The judgment is modified to strike the one-year term imposed under section 12022, subdivision (a)(1). The clerk of the superior court is directed to modify the abstract of judgment and to forward a modified abstract of judgment to the Department of Corrections and Rehabilitation. The judgment is affirmed as modified.
LAVIN, J. and GOSWAMI, J.